wiki.sine.space | sinespace

Scripting/SScriptingData

From wiki.sine.space
Revision as of 09:57, 23 December 2020 by Edisonwu (Talk | contribs) (Created page with "=Members= {{ScriptFunction|bool|Enabled|{get; set;}|Return if the ScriptingData component is Enabled or not|5=local thisObject=Space.Host.ExecutingObject<br> local thisObject...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Members

Enabled

bool Enabled {get; set;}

Return if the ScriptingData component is Enabled or not

local thisObject=Space.Host.ExecutingObject

local thisObjectData=thisObject.Data

Space.Log(thisObjectData.Enabled)


Variables

string Variables {get;}

Return a list of variables.

local thisObject=Space.Host.ExecutingObject.

local thisObjectVariable=thisObject.Data.Variables
for i=1, #thisObjectVariable do
    Space.Log(thisObjectVariable[i])

end



Properties

SetVariable

void SetVariable {string name, DynValue property;}

Set properties to variable.

local thisObject=Space.Host.ExecutingObject.

thisObjectData.SetVariable(no1Name,"no1",false)

Space.Log(no1)


GetVariable

object GetVariable {string name;}

Return the object of the variable.

local thisObject=Space.Host.ExecutingObject.

local thisObjectVariable=thisObject.Data.Variables
for i=1, #thisObjectVariable do
    Space.Log(thisObjectVariable[i])

end