SScriptingData
Index
Functions Index
Function Name
Properties Index
Property Name
Functions
GetVariable
Parameter
Type
Description
SetVariable
Parameter
Type
Description
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