NGUITools AdjustDepth is a method provided by the NGUI package library in C# that allows the user to adjust the depth of a UI widget in the scene. The depth determines the order in which the widgets are rendered and affects the visibility of the widget.
Here are some brief code examples:
Example 1: Increase the depth of a widget by 10
`NGUITools.AdjustDepth(widget.transform, 10);`
Example 2: Decrease the depth of a widget by 5
`NGUITools.AdjustDepth(widget.transform, -5);`
Example 3: Bring a widget to the front
`NGUITools.BringForward(widget.transform);`
Example 4: Send a widget to the back
`NGUITools.SendBackward(widget.transform);`
Overall, NGUITools AdjustDepth is a simple and useful method provided by the NGUI package library that allows for easy control of the depth and rendering order of UI widgets in the scene.
C# (CSharp) NGUITools.AdjustDepth - 30 examples found. These are the top rated real world C# (CSharp) examples of NGUITools.AdjustDepth extracted from open source projects. You can rate examples to help us improve the quality of examples.