Skip to content

Entity.GetRequiredBehavior() Method

Definition

Namespace: Brine2D.ECS

Gets a behavior of the specified type, throwing if it is not found.

C#
public T GetRequiredBehavior<T>()
    where T : Brine2D.ECS.Behavior;

Type parameters

T

Returns

T