Struct MagicLeapKeyPoseGestureEvent
The event data related to a Magic Leap KeyPose gesture
Namespace: UnityEngine.XR.MagicLeap
Syntax
public struct MagicLeapKeyPoseGestureEvent : IEquatable<MagicLeapKeyPoseGestureEvent>
Constructors
MagicLeapKeyPoseGestureEvent(GestureId, GestureState, MagicLeapKeyPose, MagicLeapHand)
Constructs a new MagicLeapKeyPoseGestureEvent.
Declaration
public MagicLeapKeyPoseGestureEvent(GestureId id, GestureState state, MagicLeapKeyPose keyPose, MagicLeapHand hand)
Parameters
| Type | Name | Description |
|---|---|---|
| GestureId | id | The |
| GestureState | state | The |
| MagicLeapKeyPose | keyPose | The MagicLeapKeyPose associated with the gesture. |
| MagicLeapHand | hand | The MagicLeapHand associated with the gesture. |
Properties
hand
The MagicLeapHand of the gesture.
Declaration
public MagicLeapHand hand { get; }
Property Value
| Type | Description |
|---|---|
| MagicLeapHand |
id
The
Declaration
public GestureId id { get; }
Property Value
| Type | Description |
|---|---|
| GestureId |
keyPose
The MagicLeapKeyPose of the gesture.
Declaration
public MagicLeapKeyPose keyPose { get; }
Property Value
| Type | Description |
|---|---|
| MagicLeapKeyPose |
state
The state of the gesture.
Declaration
public GestureState state { get; }
Property Value
| Type | Description |
|---|---|
| GestureState |
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
Equals(MagicLeapKeyPoseGestureEvent)
Declaration
public bool Equals(MagicLeapKeyPoseGestureEvent other)
Parameters
| Type | Name | Description |
|---|---|---|
| MagicLeapKeyPoseGestureEvent | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GetDefault()
Gets a default-initialized MagicLeapKeyPoseGestureEvent.
Declaration
public static MagicLeapKeyPoseGestureEvent GetDefault()
Returns
| Type | Description |
|---|---|
| MagicLeapKeyPoseGestureEvent | A default MagicLeapKeyPoseGestureEvent. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
System.ValueType.GetHashCode()
ToString()
Generates a new string describing the gestures's properties suitable for debugging purposes.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string describing the gestures's properties. |
Overrides
System.ValueType.ToString()
Operators
Equality(MagicLeapKeyPoseGestureEvent, MagicLeapKeyPoseGestureEvent)
Declaration
public static bool operator ==(MagicLeapKeyPoseGestureEvent lhs, MagicLeapKeyPoseGestureEvent rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| MagicLeapKeyPoseGestureEvent | lhs | |
| MagicLeapKeyPoseGestureEvent | rhs |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(MagicLeapKeyPoseGestureEvent, MagicLeapKeyPoseGestureEvent)
Declaration
public static bool operator !=(MagicLeapKeyPoseGestureEvent lhs, MagicLeapKeyPoseGestureEvent rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| MagicLeapKeyPoseGestureEvent | lhs | |
| MagicLeapKeyPoseGestureEvent | rhs |
Returns
| Type | Description |
|---|---|
| System.Boolean |