Entity.RemoveComponent_T_().md

February 25, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.Entity

Entity.RemoveComponent() Method

Remove the component of the given type from the entity.

public bool RemoveComponent<T>()
    where T : struct, Friflo.Engine.ECS.IComponent, System.ValueType, System.ValueType;

Type parameters

T

Returns

System.Boolean
true if entity contained a component of the given type before

Remarks

Executes in O(1)
Note: Use as non generic alternative

Contents

  1. 0.1Friflo.Engine.ECS.Entity
  2. 1Entity.RemoveComponent() Method
  3. 1.1Remarks