docs.unity3d.com
Search Results for

    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.Gaze
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
    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
    float
    See Also
    overrideGazeTimeToSelect
    hoverTimeToSelect

    overrideGazeTimeToSelect

    Enables this interactable to override the hoverTimeToSelect on a XRGazeInteractor.

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

    overrideTimeToAutoDeselectGaze

    Enables this interactable to override the timeToAutoDeselect on a XRGazeInteractor.

    Declaration
    bool overrideTimeToAutoDeselectGaze { get; }
    Property Value
    Type Description
    bool
    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
    float
    See Also
    overrideTimeToAutoDeselectGaze

    See Also

    XRBaseInteractable
    GetHoverTimeToSelect(IXRInteractable)
    GetTimeToAutoDeselect(IXRInteractable)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)