Skip to content

EntityPrefab.ContainsPrefab(EntityPrefab, EntityPrefab) Method

Definition

Namespace: Brine2D.ECS

Returns true when target appears anywhere in the child-prefab graph rooted at root \(depth\-first, cycle\-safe\).

C#
private static bool ContainsPrefab(Brine2D.ECS.EntityPrefab root, Brine2D.ECS.EntityPrefab target);

Parameters

root EntityPrefab

target EntityPrefab

Returns

System.Boolean