Class QuaternionFallbackComposite
A single Quaternion value, such as a rotation, computed from an ordered list of bindings. Unity reads from the first binding that has a valid control.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Composites
Syntax
[Preserve]
public class QuaternionFallbackComposite : FallbackComposite<Quaternion>
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 |
---|---|
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 Quaternion 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 |
---|---|
Quaternion | Quaternion read from the context. |