Class SpatialScrollModule.SpatialScrollData | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    Class SpatialScrollModule.SpatialScrollData

    Inheritance
    Object
    SpatialScrollModule.SpatialScrollData
    Namespace: UnityEditor.Experimental.EditorVR.Modules
    Syntax
    public class SpatialScrollData : INodeToRay

    Constructors

    SpatialScrollData(IControlSpatialScrolling, Node, Vector3, Vector3, Single, Int32, Int32, Boolean)

    Declaration
    public SpatialScrollData(IControlSpatialScrolling caller, Node node, Vector3 startingPosition, Vector3 currentPosition, float repeatingScrollLengthRange, int scrollableItemCount, int maxItemCount = -1, bool centerVisuals = true)
    Parameters
    Type Name Description
    IControlSpatialScrolling caller
    Node node
    Vector3 startingPosition
    Vector3 currentPosition
    Single repeatingScrollLengthRange
    Int32 scrollableItemCount
    Int32 maxItemCount
    Boolean centerVisuals

    Properties

    caller

    The object/caller initiating this particular spatial scroll action

    Declaration
    public IControlSpatialScrolling caller { get; set; }
    Property Value
    Type Description
    IControlSpatialScrolling

    centerVisuals

    If true, expand scroll visuals out from the center of the trigger/origin/start position

    Declaration
    public bool centerVisuals { get; set; }
    Property Value
    Type Description
    Boolean

    currentPosition

    The current scroll position

    Declaration
    public Vector3 currentPosition { get; set; }
    Property Value
    Type Description
    Vector3

    dragDistance

    Value representing how much of the pre-scroll drag amount has occurred

    Declaration
    public float dragDistance { get; set; }
    Property Value
    Type Description
    Single

    maxItemCount

    Maximum number of items (to be scrolled through) that will be allowed

    Declaration
    public int maxItemCount { get; set; }
    Property Value
    Type Description
    Int32

    node

    The node on which this spatial scroll is being processed

    Declaration
    public Node node { get; set; }
    Property Value
    Type Description
    Node

    normalizedLoopingPosition

    0-1 offset/magnitude of current scroll position, relative to the trigger/origin/start point, and the repeatingScrollLengthRange

    Declaration
    public float normalizedLoopingPosition { get; set; }
    Property Value
    Type Description
    Single

    passedMinDragActivationThreshold

    Bool denoting that the scroll trigger magnitude has been exceeded

    Declaration
    public bool passedMinDragActivationThreshold { get; }
    Property Value
    Type Description
    Boolean

    rayOrigin

    The ray origin on which this spatial scroll is being processed

    Declaration
    public Transform rayOrigin { get; set; }
    Property Value
    Type Description
    Transform

    repeatingScrollLengthRange

    The magnitude at which a scroll will repeat/reset to its original scroll starting value

    Declaration
    public float repeatingScrollLengthRange { get; set; }
    Property Value
    Type Description
    Single

    scrollableItemCount

    Number of items being scrolled through

    Declaration
    public int scrollableItemCount { get; set; }
    Property Value
    Type Description
    Int32

    spatialDirection

    The vector defining the spatial scroll direction

    Declaration
    public Vector3? spatialDirection { get; set; }
    Property Value
    Type Description
    Nullable<Vector3>

    startingPosition

    The origin/starting position of the scroll

    Declaration
    public Vector3 startingPosition { get; set; }
    Property Value
    Type Description
    Vector3

    Methods

    UpdateExistingScrollData(Vector3)

    Declaration
    public void UpdateExistingScrollData(Vector3 newPosition)
    Parameters
    Type Name Description
    Vector3 newPosition

    Extension Methods

    INodeToRayMethods.RequestRayOriginFromNode(INodeToRay, Node)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023