ScriptChanged.md
February 25, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS
ScriptChanged Struct
Is the event for event handlers added to OnScriptChanged, OnScriptAdded or OnScriptRemoved.
public readonly struct ScriptChanged
Remarks
These events are fired on:
| Fields | |
|---|---|
| Action | The executed entity change: Remove, Add or Replace script. |
| Entity | The Entity that emitted the event - aka the publisher / subject. |
| OldScript | The Script before executing Remove or Replace. Is null in case of Add. |
| Script | The new Script after executing Add or Replace. Is null in case of Remove. |
| ScriptType | The ScriptType of the remove, added or replaced script. |
| Properties | |
|---|---|
| Store | The EntityStore containing the Entity that emitted the event. |
| Methods | |
|---|---|
| ToString() |