If disabled, the Component will stop enacting its behavior.
Readonly
onReadonly
sceneThe scene object this component is on.
Readonly
uniquethe current toggle state of the button
the new state of the button, invoking the toggle event if different than current state.
the icon to be shown when the button is toggled off
the icon to be shown when the button is toggled off
the icon to be shown when the button is toggled on
the icon to be shown when the button is toggled on
Adds a new SceneEvent, triggered by eventType
events, to the ScriptComponent.
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