Sinespace Client
2023.2.17543
Client-side scripting for Sinespace
|
Public Member Functions | |
void | AddExtraAction (string name, string tooltip, Action e) |
void | AddExtraAction (string name, string tooltip, Closure e) |
Add a new action for the object to perform when clicked. Can be useful for providing multiple choice of an action on click. More... | |
void | ClearActions () |
Removes all actions from the clickable GameObject. More... | |
void | OnClick (Action e) |
void | OnClick (Closure e) |
When clicked, the GameObject performs the required action. More... | |
void | InvokeClick () |
Invoke a "click" on a Clickable component, as if the user had clicked on it themselves. More... | |
Properties | |
bool | Enabled [get, set] |
Enable or disable the clickable component from a GameObject. More... | |
string | Tooltip [get, set] |
A hint that pops up when the mouse is hovering over the GameObject. More... | |
Properties inherited from ScriptClassComponent< ClickableBaseInternal > | |
SGameObject | GameObject [get] |
Return the GameObject which component added. More... | |
void SineSpace.Scripting.Components.SClickable.AddExtraAction | ( | string | name, |
string | tooltip, | ||
Action | e | ||
) |
void SineSpace.Scripting.Components.SClickable.AddExtraAction | ( | string | name, |
string | tooltip, | ||
Closure | e | ||
) |
Add a new action for the object to perform when clicked. Can be useful for providing multiple choice of an action on click.
void SineSpace.Scripting.Components.SClickable.ClearActions | ( | ) |
Removes all actions from the clickable GameObject.
void SineSpace.Scripting.Components.SClickable.InvokeClick | ( | ) |
Invoke a "click" on a Clickable component, as if the user had clicked on it themselves.
void SineSpace.Scripting.Components.SClickable.OnClick | ( | Action | e | ) |
void SineSpace.Scripting.Components.SClickable.OnClick | ( | Closure | e | ) |
When clicked, the GameObject performs the required action.
|
getset |
Enable or disable the clickable component from a GameObject.
|
getset |
A hint that pops up when the mouse is hovering over the GameObject.