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)
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(WindowsMRNavigationGestureEvent)
Declaration
public bool Equals(WindowsMRNavigationGestureEvent other)
Parameters
| Type | Name | Description |
|---|---|---|
| WindowsMRNavigationGestureEvent | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GetDefault()
Gets a default-initialized WindowsMRNavigationGestureEvent.
Declaration
public static WindowsMRNavigationGestureEvent GetDefault()
Returns
| Type | Description |
|---|---|
| WindowsMRNavigationGestureEvent | A default WindowsMRNavigationGestureEvent. |
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(WindowsMRNavigationGestureEvent, WindowsMRNavigationGestureEvent)
Declaration
public static bool operator ==(WindowsMRNavigationGestureEvent lhs, WindowsMRNavigationGestureEvent rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| WindowsMRNavigationGestureEvent | lhs | |
| WindowsMRNavigationGestureEvent | rhs |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(WindowsMRNavigationGestureEvent, WindowsMRNavigationGestureEvent)
Declaration
public static bool operator !=(WindowsMRNavigationGestureEvent lhs, WindowsMRNavigationGestureEvent rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| WindowsMRNavigationGestureEvent | lhs | |
| WindowsMRNavigationGestureEvent | rhs |
Returns
| Type | Description |
|---|---|
| System.Boolean |