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
ActionThe executed entity change: Remove, Add or Replace script.
EntityThe Entity that emitted the event - aka the publisher / subject.
OldScriptThe Script before executing Remove or Replace.
Is null in case of Add.
ScriptThe new Script after executing Add or Replace.
Is null in case of Remove.
ScriptTypeThe ScriptType of the remove, added or replaced script.
Properties
StoreThe EntityStore containing the Entity that emitted the event.
Methods
ToString()