Entity.HasComponent_T_().md

February 25, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.Entity

Entity.HasComponent() Method

Return true if the entity contains a component of the given type.

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

Type parameters

T

Returns

System.Boolean

Contents

  1. 0.1Friflo.Engine.ECS.Entity
  2. 1Entity.HasComponent() Method