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

NameDescription
Public methodUxrGripPoseInfo Constructor.

Properties

NameDescription
Public propertyAvatarPrefabGuid Gets the GUID of the avatar prefab the grip pose info belongs to.
Public propertyGrabPoseMeshLeft Gets or sets the left grab pose preview mesh.
Public propertyGrabPoseMeshRight Gets or sets the right grab pose preview mesh.
Public propertyGripAlignTransformHandLeft Gets or sets the Transform that will be used to align the object grab point to the left UxrGrabber that grabbed it.
Public propertyGripAlignTransformHandRight Gets or sets the Transform that will be used to align the object grab point to the right UxrGrabber that grabbed it.
Public propertyHandPose Gets or sets the pose that will be used when grabbing.
Public propertyPoseBlendValue 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

NameDescription
Public Extension MethodThrowIfNull Throws an exception if the object is null. (Defined by ObjectExt.)

See Also

Reference

UltimateXR.Manipulation Namespace