CommandBufferSynced.SetComponent_T_(int,T).md

June 6, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.CommandBufferSynced

CommandBufferSynced.SetComponent(int, T) Method

Set the given component with type T of the entity with the passed entityId.

public void SetComponent<T>(int entityId, in T component)
    where T : struct, Friflo.Engine.ECS.IComponent, System.ValueType, System.ValueType;

Type parameters

T

Parameters

entityId System.Int32

component T

Implements SetComponent<T>(int, T)

Contents

  1. 0.1Friflo.Engine.ECS.CommandBufferSynced
  2. 1CommandBufferSynced.SetComponent(int, T) Method