Skip to main content

Identifiers vs. Names

An event can be identified in two ways:

Event IdentifierName
What it isA Data Asset of class EventIdentifierA text string
NodesRegister Simple Event, Invoke Simple Event, …Register Simple Event Name, Invoke Simple Event Name, …
Typo-safeYes, you pick the asset from a listNo, a misspelled name is a different event
RenamingRename the asset and every reference followsUpdate every node by hand
Built at runtimeNoYes, for example "DoorOpened_" + DoorID
ComparisonBy assetBy text, case-insensitive (MyEvent = myevent)

They are separate​

Identifier events and named events never reach each other, even if the name matches the asset name. A listener registered with the MyEvent asset is not called by Invoke Simple Event Name with "MyEvent", and the other way around. Use the same kind on both sides.

Which should I use?​

  • Use Event Identifiers for fixed, project-wide events. They are safer and easier to refactor.
  • Use Names when the event name is built at runtime or comes from data, such as per-instance events.

An empty name or a missing identifier is rejected, and the editor reports No EventIdentifier was specified.