FREE TRIAL

|

☀
☾

Interaction.Scroll

Scroll(Interaction.Update, Vector3, float, int, InputAccuracy)

Performs a raycast with the provided Ray and routes the scroll update to the collided UIBlock.

Remarks

Scroll updates are only delivered to UIBlocks with an attached Scroller component.

Declaration
public static void Scroll(Interaction.Update update, Vector3 scroll, float maxDistance = InfinityF, int layerMask = -1, InputAccuracy accuracy = InputAccuracy.High)
Parameters
Type Name Description
Interaction.Update update

The data tied to this interaction update. Ray is in world space.

Vector3 scroll

A normalized scroll vector

float maxDistance

The max distance from the ray origin (in world space) to consider an intersection point a "hit".

int layerMask

The gameobject layers to include, defaults to "All Layers".

InputAccuracy accuracy

The accuracy of the input source, defaults to High.

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC