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, Vector3, Vector3)
Constructs a new ActivateGestureEvent.
Declaration
public ActivateGestureEvent(GestureId id, GestureState state, Vector3 rayOrigin, Vector3 rayDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| GestureId | id | The GestureId associated with the gesture. |
| GestureState | state | The GestureId associated with the gesture. |
| Vector3 | rayOrigin | The |
| Vector3 | rayDirection | The |
Properties
id
The GestureId associated with this gesture.
Declaration
public GestureId id { get; }
Property Value
| Type | Description |
|---|---|
| GestureId |
rayDirection
The
Declaration
public Vector3 rayDirection { get; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
rayOrigin
The
Declaration
public Vector3 rayOrigin { get; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
state
The GestureState 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(ActivateGestureEvent)
Declaration
public bool Equals(ActivateGestureEvent other)
Parameters
| Type | Name | Description |
|---|---|---|
| ActivateGestureEvent | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
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 |
|---|---|
| System.Int32 |
Overrides
System.ValueType.GetHashCode()
ToString()
Generates a new string describing the gesture's properties suitable for debugging purposes.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string describing the gesture's properties. |
Overrides
System.ValueType.ToString()
Operators
Equality(ActivateGestureEvent, ActivateGestureEvent)
Declaration
public static bool operator ==(ActivateGestureEvent lhs, ActivateGestureEvent rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| ActivateGestureEvent | lhs | |
| ActivateGestureEvent | rhs |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(ActivateGestureEvent, ActivateGestureEvent)
Declaration
public static bool operator !=(ActivateGestureEvent lhs, ActivateGestureEvent rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| ActivateGestureEvent | lhs | |
| ActivateGestureEvent | rhs |
Returns
| Type | Description |
|---|---|
| System.Boolean |