readonly int GUI.ControlCount;
Gets the number of controls on the GUI. You won't normally need to use this property,
but in some circumstances you may wish to iterate through all the GUI's controls,
and this allows you to determine where to stop.
Example:
int i = 0;
while (i < gInventory.ControlCount) {
gInventory.Controls[i].Enabled = false;
i++;
}
disables all controls on the INVENTORY GUI.
See Also: GUI.Controls
|