SScriptingEvents
ClientComposants
Dans cette classeInvokeEvent
- Fonctions
- Invoke
Event - Propriétés
- Enabled
- Events
- Component
Name - Game
Object
Membres 5
| Fonction | InvokeEvent | Invoke the event with its name |
| Propriété | Enabled | Whether the scriptingEvents component is enabled or not |
| Propriété | Events | Returns a list of events |
| Propriété | ComponentName | The name of this component. |
| Propriété | GameObject | – |
Fonctions
InvokeEvent
void InvokeEvent(string name)
Invoke the event with its name
Paramètres
| Nom | Type | Valeur par défaut |
|---|---|---|
| name | string | – |
Valeurs de retour
void
Exemple
Lua
Space.Host.ExecutingObject.Events.InvokeEvent("EventName")
Propriétés
Enabled
bool Enabled {get; set; }
Whether the scriptingEvents component is enabled or not
Exemple
Lua
Space.Host.ExecutingObject.Events.Enabled = true
EventsLecture seule
string[] Events {get; }
Returns a list of events
Exemple
Lua
eventNames = Space.Host.ExecutingObject.Events.Events
ComponentNameLecture seule
string ComponentName {get; }
The name of this component.
Exemple
Lua
componentName = Space.Host.ExecutingObject.Events.ComponentName
GameObjectLecture seule
Exemple
Lua
theGameObject = Space.Host.ExecutingObject.Events.GameObject



