SHost

Index

Functions Index

Function Name

void InvokeEvent (string name)

void Stop ()

void InvokeDelayed (Closure c, float delay)

void StartCoroutine (DynValue value, DynValue parameter=default(DynValue), string name=null) void StartCoroutine (string value, DynValue parameter=default(DynValue)

bool ReferenceExists (string name)

bool ReferenceExistsAndNotEmpty (string name)

SGameObject GetReference (string name)

void Evaluate (string script)

Properties Index

Property Name

SGameObject ExecutingObject get

string Language get

Functions

InvokeEvent

void InvokeEvent (string name)

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

Parameter
Type
Description

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.

InvokeDelayed

void InvokeDelayed (Closure c, float delay)

Invoke the closure after the delayed time.

Parameter
Type
Description

StartCoroutine

void StartCoroutine (DynValue value, DynValue parameter=default(DynValue), string name=null) void StartCoroutine (string value, DynValue parameter=default(DynValue), string name=null)

Executes the specified function as a coroutine.

Parameter
Type
Description

ReferenceExists

bool ReferenceExists (string name)

Return true when the reference object exists and is not empty.

Parameter
Type
Description

ReferenceExistsAndNotEmpty

bool ReferenceExistsAndNotEmpty (string name)

Return true when the reference object exists and is not empty.

Parameter
Type
Description

GetReference

SGameObject GetReference (string name)

Pulls a reference from the scripting runtime component's "References" section by it's name.

Parameter
Type
Description

name

string

The name of the reference as set within the Scripting Runtime component (references section).

Evaluate

void Evaluate (string script)

Executes given Lua code/script. (white-label only)

Parameter
Type
Description

Properties

ExecutingObject

SGameObject ExecutingObject get

A reference to the GameObject that is executing this script. (The GameObject that this Scripting Runtime component is attached to).

Language

string Language get

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

Last updated

Was this helpful?