public void activateMaterialCtrls(bool active) { GuiContainer parent = this.findObjectByInternalName("matSettingsParent", true); int count = parent.getCount(); for (uint i = 0; i < count; i++) { ((GuiControl)parent.getObject(i)).setActive(active); } }