Interaction.Scroll
Scroll(Interaction.Update, Vector3, float, int, InputAccuracy)
Remarks
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. |