CommandBuffer.AddScript_T_(int,T).md

June 6, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.CommandBuffer

CommandBuffer.AddScript(int, T) Method

Add the given script to the entity with the passed entityId.

public void AddScript<T>(int entityId, T script)
    where T : Friflo.Engine.ECS.Script, new();

Type parameters

T

Parameters

entityId System.Int32

script T

Implements AddScript<T>(int, T)

Contents

  1. 0.1Friflo.Engine.ECS.CommandBuffer
  2. 1CommandBuffer.AddScript(int, T) Method