docs.unity3d.com
    Show / Hide Table of Contents

    Class Vector3FallbackComposite

    A single Vector3 value, such as a position, computed from an ordered list of bindings. The value will be read from the first binding that has a valid control.

    Inheritance
    Object
    FallbackComposite<Vector3>
    Vector3FallbackComposite
    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Composites
    Syntax
    public class Vector3FallbackComposite : FallbackComposite<Vector3>
    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 will use an ordered priority list of bindings. If the first input binding is not bound to an input control, it will fallback 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
    Int32

    second

    The second input control to evaluate.

    Declaration
    public int second
    Field Value
    Type Description
    Int32

    third

    The third input control to evaluate.

    Declaration
    public int third
    Field Value
    Type Description
    Int32

    Methods

    ReadValue(ref InputBindingCompositeContext)

    Declaration
    public override Vector3 ReadValue(ref InputBindingCompositeContext context)
    Parameters
    Type Name Description
    InputBindingCompositeContext context
    Returns
    Type Description
    Vector3
    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