Breakroom is now Sinewave Campus. Book a meeting

SScriptingEvents

العميلالمكونات
في هذا الصنفInvokeEvent
  1. الدوال
  2. InvokeEvent
  3. الخصائص
  4. Enabled
  5. Events
  6. ComponentName
  7. GameObject
الأعضاء 5
دالةInvokeEventInvoke the event with its name
خاصيةEnabledWhether the scriptingEvents component is enabled or not
خاصيةEventsReturns a list of events
خاصيةComponentNameThe name of this component.
خاصيةGameObject–

الدوال​

InvokeEvent​

void InvokeEvent(string name)

Invoke the event with its name

المعاملات

الاسمالنوعالقيمة الافتراضية
namestring–

القيم المرجعة

void

مثال

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

الخصائص​

Enabled​

bool Enabled {get; set; }

Whether the scriptingEvents component is enabled or not

مثال

Lua
Space.Host.ExecutingObject.Events.Enabled = true

Eventsللقراءة فقط​

string[] Events {get; }

Returns a list of events

مثال

Lua
eventNames = Space.Host.ExecutingObject.Events.Events

ComponentNameللقراءة فقط​

string ComponentName {get; }

The name of this component.

مثال

Lua
componentName = Space.Host.ExecutingObject.Events.ComponentName

GameObjectللقراءة فقط​

SGameObject GameObject {get; }

مثال

Lua
theGameObject = Space.Host.ExecutingObject.Events.GameObject