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.
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 |