docs.unity3d.com
    Show / Hide Table of Contents

    Interface IXROverridesGazeAutoSelect

    An interface that represents an interactable that provides overrides of the default values for hover to select and auto deselect.

    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public interface IXROverridesGazeAutoSelect

    Properties

    gazeTimeToSelect

    Number of seconds for which an XRGazeInteractor must hover over this interactable to select it if hoverToSelect is enabled.

    Declaration
    float gazeTimeToSelect { get; }
    Property Value
    Type Description
    Single
    See Also
    overrideGazeTimeToSelect
    hoverTimeToSelect

    overrideGazeTimeToSelect

    Enables this interactable to override the hoverTimeToSelect on a XRGazeInteractor.

    Declaration
    bool overrideGazeTimeToSelect { get; }
    Property Value
    Type Description
    Boolean
    See Also
    gazeTimeToSelect
    hoverToSelect

    overrideTimeToAutoDeselectGaze

    Enables this interactable to override the timeToAutoDeselect on a XRGazeInteractor.

    Declaration
    bool overrideTimeToAutoDeselectGaze { get; }
    Property Value
    Type Description
    Boolean
    See Also
    timeToAutoDeselectGaze
    autoDeselect

    timeToAutoDeselectGaze

    Number of seconds that the interactable will remain selected by a XRGazeInteractor before being automatically deselected if overrideTimeToAutoDeselectGaze is true.

    Declaration
    float timeToAutoDeselectGaze { get; }
    Property Value
    Type Description
    Single
    See Also
    overrideTimeToAutoDeselectGaze

    See Also

    XRBaseInteractable
    GetHoverTimeToSelect(IXRInteractable)
    GetTimeToAutoDeselect(IXRInteractable)
    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