Class Vector3FallbackComposite
A single Vector3 value, such as a position, computed from an ordered list of bindings. Unity reads from the first binding that has a valid control.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Composites
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[InitializeOnLoad]
[Preserve]
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 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 Vector3 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 | 
|---|---|
| Vector3 | Vector3 read from the context.  |