CommandBuffer.AddComponent_T_(int).md
June 6, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS.CommandBuffer
CommandBuffer.AddComponent(int) Method
Add the IComponent with type T to the entity with the passed entityId.
public void AddComponent<T>(int entityId)
where T : struct, Friflo.Engine.ECS.IComponent, System.ValueType, System.ValueType;
Type parameters
T
Parameters
entityId System.Int32
Implements AddComponent<T>(int)