Determines whether one or more interactors can interactor with this interactable
Provides all colliders associated with this Interactable
If disabled, the Component will stop enacting its behavior.
Returns if an Interactable is scrollable
Called when an interactor was in a down event with this interactable and was dragging
Called when an interactor is in a down event with this interactable and has moved a minimum drag distance
Called when an interactor is in a down event with this interactable and is moving
Called whenever the interactable enters the hovered state
Called whenever the interactable is no longer hovered
Called whenever an interactor remains hovering over this interactable
Called whenever a new interactor hovers over this interactable
Called whenever an interactor exits hovering this interactable
Called whenever an interactor is no longer triggering the interactable
Called whenever an interactor triggers an interactable
Called whenever an interactor is lost and was in a down event with this interactable
Called whenever the interactable exits the triggered state
Called whenever the interactable enters the triggered state
Called whenever an interactor continues to trigger an interactable
Readonly
sceneThe scene object this component is on.
Defines how an interactor can interact with this interactable. Values are: 1: Direct 2: Indirect 3: Direct/Indirect 4: Poke
Readonly
uniqueInteractors that are hovering this interactable
Interactors that are triggering this interactable
Adds a new SceneEvent, triggered by eventType
events, to the ScriptComponent.
Returns the SceneObject the component is attached to.
Notifies the interactable that it is entering hover state
Notifies the interactable that it is exiting hover state
event parameters, with omitted interactable
Notifies the interactable that it is still hovering
event parameters, with omitted interactable
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Removes a previously added SceneEvent from the ScriptComponent.
Notifies the interactable that it is a cancelled state with the interactor
event parameters, with omitted interactable
Notifies the interactable that it is exiting trigger state
event parameters, with omitted interactable
Notifies the interactable that it is entering trigger state
event parameters, with omitted interactable
Notifies the interactable that it is still in a triggering state
event parameters, with omitted interactable
Static
get
Binds scripts to Events and executes them when triggered. Any script can access the ScriptComponent executing them through the variable
script
. See also: Scripting Overview, Script Events Guide.Example