Class XRCommonHandGestures.AimActivatedStateUpdatedEventArgs
Event-args type for when the aim activate state updates.
Inherited Members
Namespace: UnityEngine.XR.Hands
Assembly: Unity.XR.Hands.dll
Syntax
public class XRCommonHandGestures.AimActivatedStateUpdatedEventArgs
Properties
commonGestures
The common gestures that raised this event.
Declaration
public XRCommonHandGestures commonGestures { get; }
Property Value
| Type | Description |
|---|---|
| XRCommonHandGestures |
See Also
handedness
Which hand is being updated.
Declaration
public Handedness handedness { get; }
Property Value
| Type | Description |
|---|---|
| Handedness |
See Also
Methods
TryGetAimActivatedState(out bool)
Attempts to get whether the aim is fully activated.
Declaration
public bool TryGetAimActivatedState(out bool isAimActivated)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isAimActivated | Will be set to true if aim is fully activated, otherwise false. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if a valid evaluation of the aim activation state is available. Returns false otherwise. |
Remarks
Data to evaluate the aim activation state might not be available when this event is dispatched.
When data is available, the function returns true and sets isAimActivated
to indicate whether the aim is fully activated. If this function returns false,
isAimActivated will also be false (whether or not the aim is actually activated).