UxrGripPoseInfo Class
Describes how an object is grabbed. It tells the pose that will be used and how it will be snapped to the hand. The key is stored in the object, ideally we would have Dictionary(key, GripPoseInfo) but since Unity does not serialize Dictionaries we use a List(GripPoseInfo) containing the key (AvatarPrefabGuid) as well.
Inheritance Hierarchy
System.Object
UltimateXR.Manipulation.UxrGripPoseInfo
Namespace: UltimateXR.Manipulation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class UxrGripPoseInfo
The UxrGripPoseInfo type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UxrGripPoseInfo | Constructor. |
Properties
Name | Description | |
---|---|---|
AvatarPrefabGuid | Gets the GUID of the avatar prefab the grip pose info belongs to. | |
GrabPoseMeshLeft | Gets or sets the left grab pose preview mesh. | |
GrabPoseMeshRight | Gets or sets the right grab pose preview mesh. | |
GripAlignTransformHandLeft | Gets or sets the Transform that will be used to align the object grab point to the left UxrGrabber that grabbed it. | |
GripAlignTransformHandRight | Gets or sets the Transform that will be used to align the object grab point to the right UxrGrabber that grabbed it. | |
HandPose | Gets or sets the pose that will be used when grabbing. | |
PoseBlendValue | Gets or sets the pose blend value if the pose has the possibility of blending. Blending is used to blend between open/closed grips or other animations. |
Extension Methods
Name | Description | |
---|---|---|
ThrowIfNull | Throws an exception if the object is null. (Defined by ObjectExt.) |