wiki.sine.space | sinespace

Difference between revisions of "Scripting/SScriptingData"

From wiki.sine.space
Jump to: navigation, search
(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...")
 
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/sscriptingdata")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Members=
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/sscriptingdata
 
+
{{ScriptFunction|bool|Enabled|{get; set;}|Return if the ScriptingData component is Enabled or not|5=local thisObject=Space.Host.ExecutingObject<br>
+
local thisObjectData=thisObject.Data<br>
+
Space.Log(thisObjectData.Enabled)
+
}}
+
 
+
{{ScriptFunction|string|Variables|{get;}|Return a list of variables.|5=local thisObject=Space.Host.ExecutingObject.<br>
+
local thisObjectVariable=thisObject.Data.Variables<br>
+
for i=1, #thisObjectVariable do<br>
+
&nbsp;&nbsp;&nbsp;&nbsp;Space.Log(thisObjectVariable[i])<br>
+
end
+
}}
+
 
+
 
+
=Properties=
+
{{ScriptFunction|void|SetVariable|{string name, DynValue property;}|Set properties to variable.|5=local thisObject=Space.Host.ExecutingObject.<br>
+
thisObjectData.SetVariable(no1Name,"no1",false)<br>
+
Space.Log(no1)
+
}}
+
 
+
{{ScriptFunction|object|GetVariable|{string name;}|Return the object of the variable.|5=local thisObject=Space.Host.ExecutingObject.<br>
+
local thisObjectVariable=thisObject.Data.Variables<br>
+
for i=1, #thisObjectVariable do<br>
+
&nbsp;&nbsp;&nbsp;&nbsp;Space.Log(thisObjectVariable[i])<br>
+
end
+
}}
+

Latest revision as of 06:22, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/sscriptingdata