public static void setChildrenVisible(IEntity e, boolean pVisible) { for (int i = 0; i < e.getChildCount(); i++) { IEntity child = e.getChildByIndex(i); if (child.getChildCount() > 0) { setChildrenVisible(child, pVisible); } child.setVisible(pVisible); } }
public static void showChildren(IEntity e) { for (int i = 0; i < e.getChildCount(); i++) { e.getChildByIndex(i).setVisible(true); } }
public static void hideChildren(IEntity e) { for (int i = 0; i < e.getChildCount(); i++) { e.getChildByIndex(i).setVisible(false); } }