Sinespace Client 2025.3.19431
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. | |
void | ClearActions () |
Removes all actions from the clickable GameObject. | |
void | OnClick (Action e) |
void | OnClick (Closure e) |
When clicked, the GameObject performs the required action. | |
void | InvokeClick () |
Invoke a "click" on a Clickable component, as if the user had clicked on it themselves. | |
![]() | |
override void | Initialise (SScript runtime, object wrapper) |
![]() | |
void | ReportError (string error, bool fatal, UnityEngine.Object target=null) |
void | Initialise (SScript runtime, object wrapper) |
Properties | |
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] |
Return the GameObject which component added. | |
![]() | |
override bool | Alive [get] |
Return if the component is alive. | |
![]() | |
T | _wrap [get] |
![]() | |
virtual bool | Alive [get] |
DynValue | CachedData [get, set] |
Additional Inherited Members | |
![]() | |
void | Initialise (SScript runtime) |
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.