public readonly record struct XrActionStateWhat an action was worth this frame.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
One struct for every type rather than five, because the alternative is a generic action and a generic action cannot live in one list that the session syncs. The unused fields are four bytes each and the clarity of action.State(hand).Float is worth them.
Fields and properties (7)
public bool IsActiveWhether the runtime is currently able to produce a value. False for a controller that is not turned on, an action nothing is bound to, and every action while the session lacks focus.
public bool ChangedWhether it differs from last frame — which is what an edge-triggered read wants.
public bool BooleanIts value, for a boolean action.
public float FloatIts value, for a float action.
public Vector2 VectorIts value, for a two-axis action.
public XrPose PoseIts value, for a pose action.
public bool IsTrackedWhether a pose action's pose is being tracked right now, rather than extrapolated from where the device was last seen.
Methods (1)
Used by (7)
- NullXrBackendTestsVixen.Xr.Tests
- NullXrSessionVixen.Xr
- OpenXrSessionVixen.Xr.OpenXR
- XrActionVixen.Xr
- XrActionSetTestsVixen.Xr.Tests
- XrTrackingSystemVixen.Xr
- XrTrackingSystemTestsVixen.Xr.Tests