object GetVariable (string name)
Return the object of the variable.
void SetVariable (string name, DynValue property, bool persistent=false)
Set properties to variable.
bool Enabled get set
Is the ScriptingData component Enabled?
string[] Variables get
Property Description
string ComponentName get
The name of this component.
GameObject get
Property Description
object GetVariable (string name)
void SetVariable (string name, DynValue property, bool persistent=false)
bool Enabled get set
string[] Variables get
string ComponentName get
SGameObject GameObject get
Space.Host.ExecutingObject.Data.GetVariable("variableName")Space.Host.ExecutingObject.SetVariable("variableName",5,true)Space.Host.ExecutingObject.Data.Enabled = false--clicking this object will Enable/Disable it's Scripting Data component
thisGameObject = Space.Host.ExecutingObject
component = thisGameObject.Data
OnClick = function()
component.Enabled = not component.Enabled
end
thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)variableNames = Space.Host.ExecutingObject.Data.VariablescomponentName = Space.Host.ExecutingObject.Data.ComponentNametheGameObject = Space.Host.ExecutingObject.Data.GameObject