ScriptChanged.Script.md
February 25, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS.ScriptChanged
ScriptChanged.Script Field
The new Script after executing Add or Replace.
Is null in case of Remove.
public readonly Script Script;
Field Value
Remarks
Use the following code snippet to switch on Script type:
switch (args.Script) {
case TestScript1 script1:
break;
case TestScript2 script2:
break;
}