-
Notifications
You must be signed in to change notification settings - Fork 1
Scripting
Philip Diffenderfer edited this page Dec 13, 2023
·
2 revisions
- A script gets defined and can be applied to an entity.
- A script can define which components are required for the script, and if they don't exist they are added to the entity.
- There are functions that can be overridden (onStage, onLive, onUpdate, onRemove)
- Local variables can be defined outside of functions, that's the script state. This can be set by editor
- Functions can be defined, private & public ones.
- You can get other entities, their values, etc.
- You can define events to emit. The editor can drag a function implementation to an emitted event for an instance.
- You can define pointers to certain things (like another entity) and the editor allows you to drag an entity to that pointer.