If disabled, the Component will stop enacting its behavior.
Readonly
sceneThe scene object this component is on.
Readonly
uniqueAdds a new SceneEvent, triggered by eventType
events, to the ScriptComponent.
Gets all InteractorCursors within the scene
a list of InteractorCursors
Deprecated
in favor of getCursorByInteractor Gets the InteractorCursor for a specified interactor
The interactor to get the cursor for
the InteractorCursor for the requested interactor, or null if it doesn't exist
Gets the InteractorCursor for a specified input type
The InteractorInputType to get the cursor for
the InteractorCursor for the requested InteractorInputType, or null if it doesn't exist
Gets the InteractorCursor for a specified interactor
The interactor to get the cursor for
the InteractorCursor for the requested interactor, or null if it doesn't exist
Returns the SceneObject the component is attached to.
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.
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