getChildEntities method
Future<List<ThermionEntity> >
getChildEntities(
- ThermionEntity parent,
- bool renderableOnly
override
Returns all child entities under parent
.
Implementation
Future<List<ThermionEntity>> getChildEntities(
ThermionEntity parent, bool renderableOnly) async {
var count = get_entity_count(_sceneManager!, parent, renderableOnly);
var out = allocator<Int>(count);
get_entities(_sceneManager!, parent, renderableOnly, out);
var outList =
List.generate(count, (index) => out[index]).cast<ThermionEntity>();
allocator.free(out);
return outList;
}