Struct WindowsMRNavigationGestureEvent
The event data related to a WindowsMR Navigation gesture
Namespace: UnityEngine.XR.WindowsMR
Syntax
public struct WindowsMRNavigationGestureEvent : IEquatable<WindowsMRNavigationGestureEvent>
Constructors
WindowsMRNavigationGestureEvent(GestureId, GestureState, Vector3)
Constructs a new WindowsMRNavigationGestureEvent.
Declaration
public WindowsMRNavigationGestureEvent(GestureId id, GestureState state, Vector3 normalizedOffset)
Parameters
Type | Name | Description |
---|---|---|
GestureId | id | The |
GestureState | state | The |
Vector3 | normalizedOffset | The normalized offset associated with the gesture. |
Properties
id
The
Declaration
public GestureId id { get; }
Property Value
Type | Description |
---|---|
GestureId |
normalizedOffset
The normalized offset, since the navigation gesture began, of the input within the unit cube for the navigation gesture.
Declaration
public Vector3 normalizedOffset { get; }
Property Value
Type | Description |
---|---|
Vector3 |
state
The
Declaration
public GestureState state { get; }
Property Value
Type | Description |
---|---|
GestureState |
Methods
Equals(Object)
Determine if the WindowsMRNavigationGestureEvent object param is the same as this object
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The WindowsMRNavigationGestureEvent object to check against |
Returns
Type | Description |
---|---|
Boolean | True if the objects are the same |
Equals(WindowsMRNavigationGestureEvent)
Check if a WindowsMRNavigationGestureEvent object is the same as this
Declaration
public bool Equals(WindowsMRNavigationGestureEvent other)
Parameters
Type | Name | Description |
---|---|---|
WindowsMRNavigationGestureEvent | other | The WindowsMRNavigationGestureEvent object to test against |
Returns
Type | Description |
---|---|
Boolean | True if the WindowsMRNavigationGestureEvent objects are the same |
GetDefault()
Gets a default-initialized WindowsMRNavigationGestureEvent.
Declaration
public static WindowsMRNavigationGestureEvent GetDefault()
Returns
Type | Description |
---|---|
WindowsMRNavigationGestureEvent | A default WindowsMRNavigationGestureEvent. |
GetHashCode()
Get the hash code for this WindowsMRNavigationGestureEvent
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(WindowsMRNavigationGestureEvent, WindowsMRNavigationGestureEvent)
Operator Equals for WindowsMRNavigationGestureEvent
Declaration
public static bool operator ==(WindowsMRNavigationGestureEvent lhs, WindowsMRNavigationGestureEvent rhs)
Parameters
Type | Name | Description |
---|---|---|
WindowsMRNavigationGestureEvent | lhs | Left hand WindowsMRNavigationGestureEvent |
WindowsMRNavigationGestureEvent | rhs | Right hand WindowsMRNavigationGestureEvent |
Returns
Type | Description |
---|---|
Boolean | True if the WindowsMRNavigationGestureEvent objects are the same |
Inequality(WindowsMRNavigationGestureEvent, WindowsMRNavigationGestureEvent)
Operator Inequal for WindowsMRNavigationGestureEvent
Declaration
public static bool operator !=(WindowsMRNavigationGestureEvent lhs, WindowsMRNavigationGestureEvent rhs)
Parameters
Type | Name | Description |
---|---|---|
WindowsMRNavigationGestureEvent | lhs | Left hand WindowsMRNavigationGestureEvent |
WindowsMRNavigationGestureEvent | rhs | Right hand WindowsMRNavigationGestureEvent |
Returns
Type | Description |
---|---|
Boolean | True if the WindowsMRNavigationGestureEvent objects are not the same |