Struct WindowsMRTappedGestureEvent
The event data related to a WindowsMR Tapped gesture
Namespace: UnityEngine.XR.WindowsMR
Syntax
public struct WindowsMRTappedGestureEvent : IEquatable<WindowsMRTappedGestureEvent>
Constructors
WindowsMRTappedGestureEvent(GestureId, GestureState, Int32)
Constructs a new WindowsMRTappedGestureEvent.
Declaration
public WindowsMRTappedGestureEvent(GestureId id, GestureState state, int tappedCount)
Parameters
| Type | Name | Description |
|---|---|---|
| GestureId | id | The |
| GestureState | state | The |
| System.Int32 | tappedCount | The System.Int32 associated with the gesture. |
Properties
id
The
Declaration
public GestureId id { get; }
Property Value
| Type | Description |
|---|---|
| GestureId |
state
The state of the gesture.
Declaration
public GestureState state { get; }
Property Value
| Type | Description |
|---|---|
| GestureState |
tappedCount
The tappedCount of the gesture.
Declaration
public int tappedCount { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
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(WindowsMRTappedGestureEvent)
Declaration
public bool Equals(WindowsMRTappedGestureEvent other)
Parameters
| Type | Name | Description |
|---|---|---|
| WindowsMRTappedGestureEvent | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GetDefault()
Gets a default-initialized WindowsMRTappedGestureEvent.
Declaration
public static WindowsMRTappedGestureEvent GetDefault()
Returns
| Type | Description |
|---|---|
| WindowsMRTappedGestureEvent | A default WindowsMRTappedGestureEvent. |
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(WindowsMRTappedGestureEvent, WindowsMRTappedGestureEvent)
Declaration
public static bool operator ==(WindowsMRTappedGestureEvent lhs, WindowsMRTappedGestureEvent rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| WindowsMRTappedGestureEvent | lhs | |
| WindowsMRTappedGestureEvent | rhs |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(WindowsMRTappedGestureEvent, WindowsMRTappedGestureEvent)
Declaration
public static bool operator !=(WindowsMRTappedGestureEvent lhs, WindowsMRTappedGestureEvent rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| WindowsMRTappedGestureEvent | lhs | |
| WindowsMRTappedGestureEvent | rhs |
Returns
| Type | Description |
|---|---|
| System.Boolean |