entityTree method
Implementation
void entityTree(
Entity<T> entity,
num x,
num y,
num fontSize, {
ColorD? color,
String? prefix,
}
) {
final yRef = [y.toInt()];
backend.render.drawText('$entity', x, y, fontSize, color ?? .WHITE);
yRef[0] += fontSize.toInt();
for (final comp in entity.getComponents()) {
tree(comp, x, yRef[0], fontSize, prefix ?? '', color ?? .WHITE, yRef);
}
}