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

Script

Remarks

Use the following code snippet to switch on Script type:

switch (args.Script) {
    case TestScript1 script1:
        break;
    case TestScript2 script2:
        break;
}

Contents

  1. 0.1Friflo.Engine.ECS.ScriptChanged
  2. 1ScriptChanged.Script Field
  3. 1.1Remarks