docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IntegerFallbackComposite

    A single int value, such as the tracking state, computed from an ordered list of bindings. Unity reads from the first binding that has a valid control.

    Inheritance
    object
    InputBindingComposite
    InputBindingComposite<int>
    FallbackComposite<int>
    IntegerFallbackComposite
    Inherited Members
    InputBindingComposite<int>.valueType
    InputBindingComposite<int>.valueSizeInBytes
    InputBindingComposite<int>.ReadValue(ref InputBindingCompositeContext, void*, int)
    InputBindingComposite<int>.ReadValueAsObject(ref InputBindingCompositeContext)
    InputBindingComposite.EvaluateMagnitude(ref InputBindingCompositeContext)
    InputBindingComposite.FinishSetup(ref InputBindingCompositeContext)
    InputBindingComposite.GetExpectedControlLayoutName(string, string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Composites
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [InitializeOnLoad]
    [Preserve]
    public class IntegerFallbackComposite : FallbackComposite<int>
    Remarks

    This composite allows for defining multiple binding paths, but unlike a Value action with multiple bindings which uses control magnitude to select the active control, this composite uses an ordered priority list of bindings. If the first input binding is not bound to an input control, it falls back to try the second input binding, and so on.

    Fields

    first

    The first input control to evaluate.

    Declaration
    public int first
    Field Value
    Type Description
    int

    second

    The second input control to evaluate.

    Declaration
    public int second
    Field Value
    Type Description
    int

    third

    The third input control to evaluate.

    Declaration
    public int third
    Field Value
    Type Description
    int

    Methods

    ReadValue(ref InputBindingCompositeContext)

    See UnityEngine.InputSystem.InputBindingComposite<TValue>

    Declaration
    public override int ReadValue(ref InputBindingCompositeContext context)
    Parameters
    Type Name Description
    InputBindingCompositeContext context

    Callback context for the binding composite. Unity uses this to access the values supplied by part bindings.

    Returns
    Type Description
    int

    int read from the context.

    Overrides
    UnityEngine.InputSystem.InputBindingComposite<int>.ReadValue(ref UnityEngine.InputSystem.InputBindingCompositeContext)
    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)