SClickable
Last updated
Last updated
Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.
void AddExtraAction (string name, string tooltip, Closure e)
Add a new action for the object to perform when clicked. Can be useful for providing miltuple choice of an action on click.
void ClearActions ()
Removes all actions from the clickable GameObject.
void OnClick (Closure e)
When clicked, the GameObject performs the required action.
bool Enabled get
set
Enable or disable the clickable component from a GameObject.
string Tooltip get
set
A hint that pops up when the mouse is hovering over the GameObject.
SGameObject GameObject get
Returns a reference to the GameObject of this component.
void AddExtraAction (string name, string tooltip, Closure e)
void ClearActions ()
void OnClick (Closure e)
bool Enabled get
set
string Tooltip get
set
SGameObject GameObject get