ReadonlyapiGeneric 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.
Whether the direct zone in front of the interaction plane is enabled. When the Interactor is within this direct zone, raycasts will be disabled.
ReadonlyisReturns true if this Component, its SceneObject, and all of that SceneObjects parents are enabled.
ReadonlysceneThe SceneObject this component is on.
Sets the preferred targeting visual. (Requires the V2 Cursor to be enabled on InteractorCursors).
ReadonlyuniqueReturns 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 after initialization during OnStartEvent. Returns null otherwise.
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.
Returns the depth (in world units) of the plane's lerp zone.
Sets the depth (in world units) of the plane's lerp zone.
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.
StaticgetReturns 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).