Skip to content

Entity.HasComponent(Type) Method

Definition

Namespace: Brine2D.ECS

Checks if this entity has a component of the specified type \(non\-generic version\). Used internally by EntityQuery for dynamic type checking.

C#
internal bool HasComponent(System.Type componentType);

Parameters

componentType System.Type

Returns

System.Boolean