Composts of ScriptingData class.
Return if the ScriptingData component is Enabled or not
local thisObjectData=thisObject.Data
--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)
Return a list of variables.
local thisObjectVariable=thisObject.Data.Variables
for i=1, #thisObjectVariable do
Space.Log(thisObjectVariable[i])
Set properties to variable.
thisObjectData.SetVariable(no1Name,"no1",false)
Return the object of the variable.
local thisObjectVariable=thisObject.Data.Variables
for i=1, #thisObjectVariable do
Space.Log(thisObjectVariable[i])
|