SScriptingEvents
العميلالمكونات
في هذا الصنفInvokeEvent
- الدوال
- Invoke
Event - الخصائص
- Enabled
- Events
- Component
Name - Game
Object
الأعضاء 5
| دالة | InvokeEvent | Invoke the event with its name |
| خاصية | Enabled | Whether the scriptingEvents component is enabled or not |
| خاصية | Events | Returns a list of events |
| خاصية | ComponentName | The name of this component. |
| خاصية | GameObject | – |
الدوال
InvokeEvent
void InvokeEvent(string name)
Invoke the event with its name
المعاملات
| الاسم | النوع | القيمة الافتراضية |
|---|---|---|
| name | string | – |
القيم المرجعة
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للقراءة فقط
مثال
Lua
theGameObject = Space.Host.ExecutingObject.Events.GameObject



