docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AffordanceStateShortcuts

    Affordance state shortcuts to facilitate the use of affordance state indices in an enum-like way.

    Inheritance
    object
    AffordanceStateShortcuts
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.State
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public static class AffordanceStateShortcuts

    Fields

    activated

    Activated state index.

    Declaration
    public const byte activated = 5
    Field Value
    Type Description
    byte

    disabled

    Disabled state index.

    Declaration
    public const byte disabled = 0
    Field Value
    Type Description
    byte

    focused

    Focused state index.

    Declaration
    public const byte focused = 6
    Field Value
    Type Description
    byte

    hovered

    Hovered state index.

    Declaration
    public const byte hovered = 2
    Field Value
    Type Description
    byte

    hoveredPriority

    Hovered Priority state index.

    Declaration
    public const byte hoveredPriority = 3
    Field Value
    Type Description
    byte

    idle

    Idle State index.

    Declaration
    public const byte idle = 1
    Field Value
    Type Description
    byte

    selected

    Selected state index.

    Declaration
    public const byte selected = 4
    Field Value
    Type Description
    byte

    Properties

    activatedState

    Default activated state data.

    Declaration
    public static AffordanceStateData activatedState { get; }
    Property Value
    Type Description
    AffordanceStateData

    disabledState

    Default disabled affordance state data.

    Declaration
    public static AffordanceStateData disabledState { get; }
    Property Value
    Type Description
    AffordanceStateData

    focusedState

    Default focused state data.

    Declaration
    public static AffordanceStateData focusedState { get; }
    Property Value
    Type Description
    AffordanceStateData

    hoveredPriorityState

    Default hovered priority state data.

    Declaration
    public static AffordanceStateData hoveredPriorityState { get; }
    Property Value
    Type Description
    AffordanceStateData

    hoveredState

    Default hovered state data.

    Declaration
    public static AffordanceStateData hoveredState { get; }
    Property Value
    Type Description
    AffordanceStateData

    idleState

    Default idle affordance state data.

    Declaration
    public static AffordanceStateData idleState { get; }
    Property Value
    Type Description
    AffordanceStateData

    selectedState

    Default selected state data.

    Declaration
    public static AffordanceStateData selectedState { get; }
    Property Value
    Type Description
    AffordanceStateData
    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)