wiki.sine.space | sinespace

Difference between revisions of "Scripting/SHost"

From wiki.sine.space
Jump to: navigation, search
(Created page with "The SHost class represents the scripting runtime. ==Members== {{ScriptFunction|void|InvokeEvent|(string name);|Invokes a UnityEvent attached to the Scripting Runtime componen...")
 
Line 3: Line 3:
 
==Members==
 
==Members==
 
{{ScriptFunction|void|InvokeEvent|(string name);|Invokes a UnityEvent attached to the Scripting Runtime component this script is executing in.}}
 
{{ScriptFunction|void|InvokeEvent|(string name);|Invokes a UnityEvent attached to the Scripting Runtime component this script is executing in.}}
 +
{{ScriptFunction|void|Stop|();|Pauses the current script until it is manually restarted, at the end of the current function/method; consider using return as well}}
 
{{ScriptFunction|SGameObject|ExecutingObject|{ get; }|Returns the SGameObject this script is attached to}}
 
{{ScriptFunction|SGameObject|ExecutingObject|{ get; }|Returns the SGameObject this script is attached to}}
  
 
{{Scripting Navbox}}
 
{{Scripting Navbox}}

Revision as of 17:26, 17 January 2017

The SHost class represents the scripting runtime.

Members

InvokeEvent

void InvokeEvent (string name);

Invokes a UnityEvent attached to the Scripting Runtime component this script is executing in.

No example provided yet


Stop

void Stop ();

Pauses the current script until it is manually restarted, at the end of the current function/method; consider using return as well

No example provided yet


ExecutingObject

SGameObject ExecutingObject { get; }

Returns the SGameObject this script is attached to

No example provided yet