| Parameter | Description |
|---|---|
| allocator | The allocator to use for the returned array. |
NativeArray<Entity> A NativeArray containing all direct child entities.
Gets all child entities.
This fetches all children in a single call.
The caller is responsible for disposing the returned NativeArray.
Usage:
using (var children = transformRef.GetChildEntities(Allocator.Temp))
{
foreach (Entity child in children)
{
// Process child
}
}