Guides
These docs are for v3.2.0. Click to read the latest docs for v3.3.0.

VRTK_ContentHandler

Overview

Manages objects defined as content. When taking out an object from a drawer and closing the drawer this object would otherwise disappear even if outside the drawer.

The script will use the boundaries of the control to determine if it is in or out and re-parent the object as necessary. It can be put onto individual objects or the parent of multiple objects. Using the latter way all interactable objects under that parent will become managed by the script.

Inspector Parameters

  • Control: The 3D control responsible for the content.
  • Inside: The transform containing the meshes or colliders that define the inside of the control.
  • Outside: Any transform that will act as the parent while the object is not inside the control.

Example

VRTK/Examples/025_Controls_Overview has a drawer with a collection of items that adhere to this concept.