Skip to content

Entity.GetComponent(Type) Method

Definition

Namespace: Brine2D.ECS

Gets a component of the specified type attached to this entity \(non\-generic\). Used internally by the serialization layer when the concrete type is only known at runtime. Prefer the generic overload for all other uses.

C#
internal Brine2D.ECS.Component? GetComponent(System.Type componentType);

Parameters

componentType System.Type

Returns

Component