Struct InteractionState
InteractionState type to hold current state for a given interaction.
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
[Serializable]
public struct InteractionState
Properties
activatedThisFrame
Whether the interaction state was activated this frame.
Declaration
public bool activatedThisFrame { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
active
Whether it is currently on.
Declaration
public bool active { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
deactivatedThisFrame
Whether the interaction state was deactivated this frame.
Declaration
public bool deactivatedThisFrame { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
deActivatedThisFrame
Declaration
[Obsolete("deActivatedThisFrame has been deprecated. Use deactivatedThisFrame instead. (UnityUpgradable) -> deactivatedThisFrame")]
public bool deActivatedThisFrame { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Reset()
Declaration
[Obsolete("Reset has been renamed. Use ResetFrameDependent instead. (UnityUpgradable) -> ResetFrameDependent()")]
public void Reset()
ResetFrameDependent()
Resets the interaction states that are based on whether they occurred "this frame".
Declaration
public void ResetFrameDependent()