Entity.GetComponentInParent() Method
Definition¶
Namespace: Brine2D.ECS
Gets a component on this entity or any of its ancestors.
public T? GetComponentInParent<T>()
where T : Brine2D.ECS.Component;
Type parameters¶
T
Returns¶
Remarks¶
This is O(depth). Avoid calling on hot paths or deep hierarchies.