انتقل إلى المحتوى الرئيسي

SScriptingEvents

Index​

Functions Index​

Function Name
void InvokeEvent (string name)

Properties Index​

Property Name
bool Enabled get set
string[] Events get
string ComponentName get
SGameObject GameObject get

Functions​

InvokeEvent​

void InvokeEvent (string name)

Invoke the event with its name

ParameterTypeDescription
Space.Host.ExecutingObject.Events.InvokeEvent("EventName")

Properties​

Enabled​

bool Enabled get set

Whether the scriptingEvents component is enabled or not

Space.Host.ExecutingObject.Events.Enabled = true

Events​

string[] Events get

Returns a list of events

eventNames = Space.Host.ExecutingObject.Events.Events

ComponentName​

string ComponentName get

The name of this component.

componentName = Space.Host.ExecutingObject.Events.ComponentName

GameObject​

SGameObject GameObject get

Property Description

theGameObject = Space.Host.ExecutingObject.Events.GameObject