Struct WindowsMRHoldGestureEvent
The event data related to a WindowsMR Hold gesture
Namespace: UnityEngine.XR.WindowsMR
Syntax
public struct WindowsMRHoldGestureEvent : IEquatable<WindowsMRHoldGestureEvent>
Constructors
WindowsMRHoldGestureEvent(GestureId, GestureState)
Constructs a new WindowsMRHoldGestureEvent.
Declaration
public WindowsMRHoldGestureEvent(GestureId id, GestureState state)
Parameters
Type | Name | Description |
---|---|---|
GestureId | id | The |
GestureState | state | The |
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 |
Methods
Equals(Object)
Determine if the WindowsMRHoldGestureEvent object param is the same as this object
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The WindowsMRHoldGestureEvent object to check against |
Returns
Type | Description |
---|---|
Boolean | True if the objects are the same |
Equals(WindowsMRHoldGestureEvent)
Check if a WindowsMRHoldGestureEvent object is the same as this
Declaration
public bool Equals(WindowsMRHoldGestureEvent other)
Parameters
Type | Name | Description |
---|---|---|
WindowsMRHoldGestureEvent | other | The WindowsMRHoldGestureEvent object to test against |
Returns
Type | Description |
---|---|
Boolean | True if the WindowsMRHoldGestureEvent objects are the same |
GetDefault()
Gets a default-initialized WindowsMRHoldGestureEvent.
Declaration
public static WindowsMRHoldGestureEvent GetDefault()
Returns
Type | Description |
---|---|
WindowsMRHoldGestureEvent | A default WindowsMRHoldGestureEvent. |
GetHashCode()
Get the hash code for this WindowsMRHoldGestureEvent
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The integer representation of the hash code |
ToString()
Generates a new string describing the gestures's properties suitable for debugging purposes.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string describing the gestures's properties. |
Operators
Equality(WindowsMRHoldGestureEvent, WindowsMRHoldGestureEvent)
Operator Equals for WindowsMRHoldGestureEvent
Declaration
public static bool operator ==(WindowsMRHoldGestureEvent lhs, WindowsMRHoldGestureEvent rhs)
Parameters
Type | Name | Description |
---|---|---|
WindowsMRHoldGestureEvent | lhs | Left hand WindowsMRHoldGestureEvent |
WindowsMRHoldGestureEvent | rhs | Right hand WindowsMRHoldGestureEvent |
Returns
Type | Description |
---|---|
Boolean | True if the WindowsMRHoldGestureEvent objects are the same |
Inequality(WindowsMRHoldGestureEvent, WindowsMRHoldGestureEvent)
Operator Inequal for WindowsMRHoldGestureEvent
Declaration
public static bool operator !=(WindowsMRHoldGestureEvent lhs, WindowsMRHoldGestureEvent rhs)
Parameters
Type | Name | Description |
---|---|---|
WindowsMRHoldGestureEvent | lhs | Left hand WindowsMRHoldGestureEvent |
WindowsMRHoldGestureEvent | rhs | Right hand WindowsMRHoldGestureEvent |
Returns
Type | Description |
---|---|
Boolean | True if the WindowsMRHoldGestureEvent objects are not the same |