UxrGrabPointInfo Class

Defines a UxrGrabbableObject grab point. A grab point describes a point of an object which can be grabbed. Objects can have multiple grab points to allow it to be grabbed from different angles. Grab points can be further expanded by using a UxrGrabPointShape, which gives flexibility by allowing it to be grabbed around or along an axis passing through that point, for example.

Inheritance Hierarchy

System.Object
  UltimateXR.Manipulation.UxrGrabPointInfo
Namespace: UltimateXR.Manipulation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

[SerializableAttribute]
public class UxrGrabPointInfo


The UxrGrabPointInfo type exposes the following members.

Constructors

NameDescription
Public methodUxrGrabPointInfo

Properties

NameDescription
Public propertyAlignToController Gets or sets whether to align the grab to the controller axes, useful when grabbing objects that require aiming, such as weapons.
Public propertyAlignToControllerAxes Gets or sets the transform in the grabbable object to use that will align to the controller axes (x = right, y = up, z = forward).
Public propertyAvatarGripPoseEntries Gets the registered avatars for specific grip poses and properties.
Public propertyBothHandsCompatible Gets or sets whether both hands are compatible with the grab point.
Public propertyDefaultGripPoseInfo Gets or sets the default grip pose info, which is the grip pose info used when an avatar interacts with an object and is not registered to have specific properties.
Public propertyEditorName Gets or sets the grab point display name in the inspector.
Public propertyEnableOnHandNear Gets or sets the GameObject to enable or disable when the object is grabbed or not using the grab point.
Public propertyGrabberProximityIndex Gets or sets which additional proximity transform from UxrGrabber to use when GrabberProximityUseDefault is false.
Public propertyGrabberProximityTransformIndex Gets the UxrGrabber proximity index used to compute the distance to the object. -1 for default (the grabber itself) or any other value for additional transforms in the UxrGrabber component.
Public propertyGrabberProximityUseDefault Gets or sets whether to use the UxrGrabber transform when computing the distance to the grab point. Otherwise it can specify additional proximity transforms using GrabberProximityIndex.
Public propertyGrabMode Gets or sets the grab mode.
Public propertyGrabProximityBox Gets or sets the box collider used when GrabProximityMode is BoxConstrained.
Public propertyGrabProximityMode Gets or sets the proximity mode to use.
Public propertyGrabProximityTransform Gets or sets the Transform that will be used to compute the distance to UxrGrabber components when GrabberProximityUseDefault is false.
Public propertyGrabProximityTransformUseSelf Gets or sets whether to use the own UxrGrabbableObject transform when computing the distance to UxrGrabber components.
Public propertyGripPoseInfoCount Gets how many grip pose entries there are. 1 (the default grip pose info) plus all the registered avatar ones.
Public propertyHandSide If BothHandsCompatible is false, tells which hand is used to grab the object using the grab point.
Public propertyHideHandGrabberRenderer Gets or sets whether to hide the hand while it is grabbing the object using the grab point.
Public propertyInputButtons If UseDefaultGrabButtons is false, tells which buttons are used to grab the object using the grab point.
Public propertyIsEditorFoldedOut Gets or sets whether foldout control for a given grab point is folded out or not. We use this in the editor to check if we need to render the preview grab pose meshes for a given grab point. Grab points that are not folded out are not rendered.
Public propertyMaxDistanceGrab Gets or sets the maximum distance the object can be grabbed using this the grab point.
Public propertySnapDirection Gets or sets whether the object will snap to the hand or the hand will snap to the object when it is grabbed using the grab point. Only used when any kind of snapping is enabled.
Public propertySnapMode Gets or sets how the object will snap to the hand when it is grabbed using the grab point.
Public propertySnapReference Gets or sets which reference to use for snapping when the object is grabbed using the grab point.
Public propertyUseDefaultGrabButtons Gets or sets whether to use the default grab buttons to grab the object using the grab point.

Methods

NameDescription
Public methodCheckAddGripPoseInfo Checks whether to create a grip pose entry for the given avatar prefab.
Public methodGetCompatibleGripPoseInfos Gets all the grip pose infos that can be used with the given avatar.
Public methodGetGripPoseInfo(Int32) Gets a given grip pose info entry.
Public methodGetGripPoseInfo(String) Gets a given grip pose info entry.
Public methodGetGripPoseInfo(UxrAvatar, Boolean) Gets the grip pose info for the given avatar instance or prefab.
Public methodRemoveGripPoseInfo Removes the grip pose entry of a given avatar prefab.

Extension Methods

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

See Also

Reference

UltimateXR.Manipulation Namespace