wiki.sine.space | sinespace

Difference between revisions of "Scripting/SHost"

From wiki.sine.space
Jump to: navigation, search
Line 5: Line 5:
 
{{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|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}}
 +
{{ScriptFunction|string|Language|{ get; }|Returns the English name for the users language, e.g. 'English', 'French', 'Chinese'}}
  
 
{{Scripting Navbox}}
 
{{Scripting Navbox}}

Revision as of 13:21, 19 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


Language

string Language { get; }

Returns the English name for the users language, e.g. 'English', 'French', 'Chinese'

No example provided yet