You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for the 3D controls content handler was missing due
to the header of the file being named incorrectly. This has now been
updated and the documentation regenerated.
@@ -3033,3 +3034,23 @@ The script will instantiate the required Rigidbody and Interactable components a
3033
3034
3034
3035
---
3035
3036
3037
+
## Content Handler (VRTK_ContentHandler)
3038
+
3039
+
### Overview
3040
+
3041
+
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.
3042
+
3043
+
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.
3044
+
3045
+
### Inspector Parameters
3046
+
3047
+
***Control:** The 3D control responsible for the content.
3048
+
***Inside:** The transform containing the meshes or colliders that define the inside of the control.
3049
+
***Outside:** Any transform that will act as the parent while the object is not inside the control.
3050
+
3051
+
### Example
3052
+
3053
+
`VRTK/Examples/025_Controls_Overview` has a drawer with a collection of items that adhere to this concept.
0 commit comments