UxrManipulationEventArgs Class
Event parameters for most manipulation events: UxrGrabManager:
- GrabTrying
- ObjectGrabbing
- ObjectGrabbed
- ObjectReleasing
- ObjectReleased
- ObjectPlacing
- ObjectPlaced
- ObjectRemoving
- ObjectRemoved
- AnchorRangeEntered
- AnchorRangeLeft
- PlacedObjectRangeEntered
- PlacedObjectRangeLeft
Inheritance Hierarchy
System.Object
System.EventArgs
UltimateXR.Manipulation.UxrManipulationEventArgs
Namespace: UltimateXR.Manipulation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public class UxrManipulationEventArgs : EventArgs
The UxrManipulationEventArgs type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UxrManipulationEventArgs | Constructor. |
Properties
Name | Description | |
---|---|---|
GrabbableAnchor | Gets the grabbable object anchor related to the event. Can be null if the event doesn’t use this property. Check the event documentation to see how the property is used. | |
GrabbableObject | Gets the grabbable object related to the event. Can be null if the event doesn’t use this property. Check the event documentation to see how the property is used. | |
Grabber | Gets the grabber related to the event. Can be null if the event doesn’t use this property. Check the event documentation to see how the property is used. | |
GrabPointIndex | Gets the grabbable object’s grab point index related to the event. Can be meaningless if the event doesn’t use this property. Check the event documentation to see how the property is used. | |
IsMultiHands | Gets whether the manipulation used more than one hand. Can be meaningless if the event doesn’t use this property. Check the event documentation to see how the property is used. | |
IsOwnershipChanged | Gets whether the manipulation changed an object’s ownership. This is if IsMultiHands and IsSwitchHands are both false. This is useful to filter events that should be processed only if an object switched from belonging to an avatar to not belonging anymore or vice-versa, ignoring events where the object was already in the hands of an avatar and is just switching hands or being grabbed with more than one hand. | |
IsSwitchHands | Gets whether the event was the result of passing the object from one hand to the other. Can be meaningless if the event doesn’t use this property. Check the event documentation to see how the property is used. | |
PlacementType | Gets the placement type in place events. | |
ReleaseAngularVelocity | Gets the release angular velocity for release events. | |
ReleaseVelocity | Gets the release velocity for release events. |
Extension Methods
Name | Description | |
---|---|---|
ThrowIfNull | Throws an exception if the object is null. (Defined by ObjectExt.) |