Readonly
apiGeneric object accessible by other instances of ScriptComponent. Use this object to store references to properties and methods that need to be accessible from other ScriptComponents.
If disabled, the Component will stop enacting its behavior.
Readonly
sceneThe scene object this component is on.
Readonly
uniqueReturns the depth (in world units) of the plane's behind zone along the local Z axis of the SceneObject.
Sets the depth (in world units) of the plane's behind zone along the local Z axis of the SceneObject.
Returns the collider of the InteractionPlane.
Returns the depth (in world units) of the plane's direct interaction zone along the local Z axis of the SceneObject.
Sets the depth (in world units) of the plane's direct interaction zone along the local Z axis of the SceneObject.
if the interaction zone should be drawn via debug gizmos.
Sets if the interaction zone should be drawn via debug gizmos.
a vec3 representing the normal vector of the plane.
Returns the depth (in world units) of the plane's interaction zone along the local Z axis of the SceneObject.
Sets the depth (in world units) of the plane's interaction zone along the local Z axis of the SceneObject.
Adds a new SceneEvent, triggered by eventType
events, to the ScriptComponent.
Destroys the component.
Returns the SceneObject the component is attached to.
Returns the Transform this component is attached to.
Static
getReturns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Project a 3D point in world space onto the InteractionPlane.
a 3D point in world space
Removes a previously added SceneEvent from the ScriptComponent.
An InteractionPlane defines a zone which triggers near field targeting logic for HandInteractors. An InteractionPlane should be added to any 2D UIs with high button density, such as ContainerFrame menus. Only one InteractionPlane should be added per UI (ContainerFrame adds an InteractionPlane by default).