API reference
API reference
Select your platform
No SDKs available
No versions available

TouchHandGrabInteractable Class

Provides a hand-specific, collisions-based, grab interaction model (distinct from HandGrab.HandGrabInteractor's spatial hueristic approach) where selection begins when finger tips overlap with an associated interactable.
This interaction mode simulates the physicality of grabbing a real-world object with the fingertips.

Fields

Retrieves the Interaction.ColliderGroup associated with this interactable.
TouchHandGrabInteractables can require multiple Colliders in order to effectively characterize the grabbable shape, particularly for complex models, so a group is used to aggregate them.

Protected Functions

override void Start ( )

Member Functions

This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets a Unity Collider as the bounds collider for a dynamically instantiated TouchHandGrabInteractable.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the list of Unity Colliders to be made into an Interaction.ColliderGroup of a dynamically instantiated TouchHandGrabInteractable.
Because ColliderGroup is instantiated from this list in Unity's Start() method, this must be called before the MonoBehaviour lifecycle initializes this instance; otherwise, the provided colliders will be ignored. This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon