Breakroom is now Sinewave Campus. Book a meeting

SScriptingEvents

ClientComposants
Dans cette classeInvokeEvent
  1. Fonctions
  2. InvokeEvent
  3. Propriétés
  4. Enabled
  5. Events
  6. ComponentName
  7. GameObject
Membres 5
FonctionInvokeEventInvoke the event with its name
PropriétéEnabledWhether the scriptingEvents component is enabled or not
PropriétéEventsReturns a list of events
PropriétéComponentNameThe name of this component.
PropriétéGameObject–

Fonctions​

InvokeEvent​

void InvokeEvent(string name)

Invoke the event with its name

Paramètres

NomTypeValeur par défaut
namestring–

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​

SGameObject GameObject {get; }

Exemple

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