ColliderGroup
: ColliderGroup |
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.
Signature
ColliderGroup Oculus.Interaction.TouchHandGrabInteractable.ColliderGroup |
Start
()
|
Signature
override void Oculus.Interaction.TouchHandGrabInteractable.Start() Returns override void |
InjectAllTouchHandGrabInteractable
(
boundsCollider
, colliders
)
|
Convenience method combining InjectBoundsCollider(Collider) and InjectColliders(List<Collider>).
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.TouchHandGrabInteractable.InjectAllTouchHandGrabInteractable(Collider boundsCollider, List< Collider > colliders) Parameters boundsCollider: Collidercolliders: List< Collider >Returns void |
InjectBoundsCollider
(
boundsCollider
)
|
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.
Signature
void Oculus.Interaction.TouchHandGrabInteractable.InjectBoundsCollider(Collider boundsCollider) Parameters boundsCollider: ColliderReturns void |
InjectColliders
(
colliders
)
|
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.
Signature
void Oculus.Interaction.TouchHandGrabInteractable.InjectColliders(List< Collider > colliders) Parameters colliders: List< Collider >Returns void |