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