Entity.TryGetComponent(T) Method
Definition
Namespace: Brine2D.ECS
Gets a component of the specified type and returns whether it was found. Performs a single pool lookup, avoiding the double-lookup of Brine2D.ECS.Entity.HasComponent<> followed by Brine2D.ECS.Entity.GetComponent<>.
Type parameters
T
Parameters
component T