GameObject panel = GameObject.Find("Panel"); NGUITools.BringForward(panel);
GameObject button = GameObject.Find("Button"); NGUITools.BringForward(button);
UILabel[] labels = FindObjectsOfTypeThis example demonstrates how NGUITools.BringForward can be used in a loop to bring all labels in the scene to the front of the depth hierarchy. NGUITools is an open-source package library that can be found on GitHub. It provides a variety of UI tools for Unity game development, including widgets, fonts, and scripts for building user interfaces.(); foreach (UILabel label in labels) { NGUITools.BringForward(label.gameObject); }