Entity.TryGetBehavior(T) Method
Definition
Namespace: Brine2D.ECS
Gets a behavior of the specified type and returns whether it was found. Performs a single linear scan, avoiding the double-scan of HasBehavior<T>() followed by GetBehavior<T>().
Type parameters
T
Parameters
behavior T