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.
ReadonlyisReturns true if this Component, its SceneObject, and all of that SceneObjects parents are enabled.
ReadonlysceneThe SceneObject this component is on.
ReadonlyuniqueReturns the depth (cm) of the behind-plane tolerance zone.
Sets the depth (cm) of the behind-plane tolerance zone.
Returns the collider of the InteractionPlane after initialization.
Returns if the interaction zone should be drawn via debug gizmos.
Sets if the interaction zone should be drawn via debug gizmos.
Returns the depth (cm) of the near-field zone.
Sets the depth (cm) of the near-field zone.
Returns the depth (cm) at which near-field mode is exited (includes hysteresis).
Returns the normal vector of the plane (local Z forward).
Returns the local-space offset of the interaction plane.
Returns the depth (cm) of the physical interaction zone.
Sets the depth (cm) of the physical interaction zone (poke/direct pinch).
Returns the depth (cm) at which physical mode is exited (includes hysteresis).
Returns the plane origin in world space (accounting for offset).
Returns the up vector of the plane (local Y up).
Check if a ray intersects the plane within its bounds.
True if the ray intersects the plane within (planeSize + margin) bounds
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
A ZoneProjection with the projected point and zone membership, or null if projection fails.
Removes a previously added SceneEvent from the ScriptComponent.
An InteractionPlane defines a zone which triggers near-field targeting logic for HandInteractors.
Add an InteractionPlane to any 2D UI with high button density, such as ContainerFrame menus. Only one InteractionPlane should be added per UI (ContainerFrame adds one by default).
Interaction Zones (from far to close):
nearFieldDepth- uses standard ray targetingnearFieldDepth(17cm default) - uses stabilized pinch locusphysicalZoneDepth(3cm default) - enables poke and direct pinchHysteresis:
Entry and exit thresholds differ to prevent flickering at zone boundaries.