Struct ActivateGestureEvent
The event data for a common gesture used to activate world geometry or UI.
Namespace: UnityEngine.XR.InteractionSubsystems
Syntax
public struct ActivateGestureEvent : IEquatable<ActivateGestureEvent>
Constructors
ActivateGestureEvent(GestureId, GestureState)
Constructs a new ActivateGestureEvent.
Declaration
public ActivateGestureEvent(GestureId id, GestureState state)
Parameters
Type | Name | Description |
---|---|---|
GestureId | id | The GestureId associated with the gesture. |
GestureState | state | The GestureId associated with the gesture. |
Properties
id
The GestureId associated with this gesture.
Declaration
public readonly GestureId id { get; }
Property Value
Type | Description |
---|---|
GestureId |
state
The GestureState of the gesture.
Declaration
public readonly GestureState state { get; }
Property Value
Type | Description |
---|---|
GestureState |
Methods
Equals(Object)
Comparison operation to determine if the give object is equal to this instace.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | object to compare to |
Returns
Type | Description |
---|---|
Boolean | true if equal, false otherwise |
Overrides
Equals(ActivateGestureEvent)
Test if the given ActiveateGestureEvent is equal to this ActivateGestureEvent
Declaration
public bool Equals(ActivateGestureEvent other)
Parameters
Type | Name | Description |
---|---|---|
ActivateGestureEvent | other | The comparison object |
Returns
Type | Description |
---|---|
Boolean | true if they are equal. false otherwise. |
GetDefault()
Gets a default-initialized ActivateGestureEvent.
Declaration
public static ActivateGestureEvent GetDefault()
Returns
Type | Description |
---|---|
ActivateGestureEvent | A default ActivateGestureEvent. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
ToString()
Generates a new string describing the gesture's properties suitable for debugging purposes.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string describing the gesture's properties. |
Overrides
Operators
Equality(ActivateGestureEvent, ActivateGestureEvent)
Comparison operation to determine if the ActivateGestureEvents are equal.
Declaration
public static bool operator ==(ActivateGestureEvent lhs, ActivateGestureEvent rhs)
Parameters
Type | Name | Description |
---|---|---|
ActivateGestureEvent | lhs | The first ActivateGestureEvent to compare. |
ActivateGestureEvent | rhs | The second ActivateGestureEvent to compare. |
Returns
Type | Description |
---|---|
Boolean | true if they are not equal, false otherwise. |
Inequality(ActivateGestureEvent, ActivateGestureEvent)
Comparison operation to determine if the ActivateGestureEvents are not equal
Declaration
public static bool operator !=(ActivateGestureEvent lhs, ActivateGestureEvent rhs)
Parameters
Type | Name | Description |
---|---|---|
ActivateGestureEvent | lhs | The first ActivateGestureEvent to compare. |
ActivateGestureEvent | rhs | The second ActivateGestureEvent to compare. |
Returns
Type | Description |
---|---|
Boolean | true if they are not equal, false otherwise. |