SClickable

Index

Functions Index

Function Name

void AddExtraAction (string name, string tooltip, Closure e)

void OnClick (Closure e)

Properties Index

Property Name

bool Enabled get set

string Tooltip get set

SGameObject GameObject get

Functions

AddExtraAction

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.

Parameter
Type
Description

ClearActions

void ClearActions ()

Removes all actions from the clickable GameObject.

OnClick

void OnClick (Closure e)

When clicked, the GameObject performs the required action.

Parameter
Type
Description

Properties

Enabled

bool Enabled get set

Enable or disable the clickable component from a GameObject.

Tooltip

string Tooltip get set

A hint that pops up when the mouse is hovering over the GameObject.

GameObject

SGameObject GameObject get

Returns a reference to the GameObject of this component.

Last updated

Was this helpful?