Struct ActivateGestureEvent
The event data for a common gesture used to activate world geometry or UI.
Implements
Inherited Members
Namespace: UnityEngine.XR.InteractionSubsystems
Assembly: Unity.XR.InteractionSubsystems.dll
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. |
See Also
Properties
id
The GestureId associated with this gesture.
Declaration
public GestureId id { get; }
Property Value
| Type | Description |
|---|---|
| GestureId |
See Also
state
The GestureState of the gesture.
Declaration
public GestureState state { get; }
Property Value
| Type | Description |
|---|---|
| GestureState |
See Also
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 |
|---|---|
| bool | true if equal, false otherwise |
Overrides
See Also
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 |
|---|---|
| bool | true if they are equal. false otherwise. |
See Also
GetDefault()
Gets a default-initialized ActivateGestureEvent.
Declaration
public static ActivateGestureEvent GetDefault()
Returns
| Type | Description |
|---|---|
| ActivateGestureEvent | A default ActivateGestureEvent. |
See Also
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
See Also
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
See Also
Operators
operator ==(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 |
|---|---|
| bool | true if they are not equal, false otherwise. |
See Also
operator !=(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 |
|---|---|
| bool | true if they are not equal, false otherwise. |