NGUI: Next-Gen UI kit
3.7.2
|
This is an internally-created script used by the UI system. You shouldn't be attaching it manually. More...
Public Types | |
enum | Clipping : int { Clipping.None = 0, Clipping.SoftClip = 3, Clipping.ConstrainButDontClip = 4 } |
Public Member Functions | |
delegate void | OnRenderCallback (Material mat) |
void | UpdateGeometry (int widgetCount) |
Set the draw call's geometry. More... | |
Static Public Member Functions | |
static UIDrawCall | Create (UIPanel panel, Material mat, Texture tex, Shader shader) |
Return an existing draw call. More... | |
static void | ClearAll () |
Clear all draw calls. More... | |
static void | ReleaseAll () |
Immediately destroy all draw calls. More... | |
static void | ReleaseInactive () |
Immediately destroy all inactive draw calls (draw calls that have been recycled and are waiting to be re-used). More... | |
static int | Count (UIPanel panel) |
Count all draw calls managed by the specified panel. More... | |
static void | Destroy (UIDrawCall dc) |
Destroy the specified draw call. More... | |
Public Attributes | |
int | widgetCount = 0 |
int | depthStart = int.MaxValue |
int | depthEnd = int.MinValue |
UIPanel | manager |
UIPanel | panel |
bool | alwaysOnScreen = false |
BetterList< Vector3 > | verts = new BetterList<Vector3>() |
BetterList< Vector3 > | norms = new BetterList<Vector3>() |
BetterList< Vector4 > | tans = new BetterList<Vector4>() |
BetterList< Vector2 > | uvs = new BetterList<Vector2>() |
BetterList< Color32 > | cols = new BetterList<Color32>() |
bool | isDirty = false |
Whether the draw call has changed recently. More... | |
OnRenderCallback | onRender |
Callback that will be triggered at OnWillRenderObject() time. More... | |
Properties | |
static BetterList< UIDrawCall > | list [get] |
static BetterList< UIDrawCall > | activeList [get] |
List of active draw calls. More... | |
static BetterList< UIDrawCall > | inactiveList [get] |
List of inactive draw calls. Only used at run-time in order to avoid object creation/destruction. More... | |
int | renderQueue [get, set] |
Render queue used by the draw call. More... | |
int | sortingOrder [get, set] |
Renderer's sorting order, to be used with Unity's 2D system. More... | |
int | finalRenderQueue [get] |
Final render queue used to draw the draw call's geometry. More... | |
Transform | cachedTransform [get] |
Transform is cached for speed and efficiency. More... | |
Material | baseMaterial [get, set] |
Material used by this screen. More... | |
Material | dynamicMaterial [get] |
Dynamically created material used by the draw call to actually draw the geometry. More... | |
Texture | mainTexture [get, set] |
Texture used by the material. More... | |
Shader | shader [get, set] |
Shader used by the material. More... | |
int | triangles [get] |
The number of triangles in this draw call. More... | |
bool | isClipped [get] |
Whether the draw call is currently using a clipped shader. More... | |
This is an internally-created script used by the UI system. You shouldn't be attaching it manually.
enum UIDrawCall.Clipping : int |
|
static |
Clear all draw calls.
|
static |
Count all draw calls managed by the specified panel.
|
static |
Return an existing draw call.
|
static |
Destroy the specified draw call.
delegate void UIDrawCall.OnRenderCallback | ( | Material | mat | ) |
|
static |
Immediately destroy all draw calls.
|
static |
Immediately destroy all inactive draw calls (draw calls that have been recycled and are waiting to be re-used).
void UIDrawCall.UpdateGeometry | ( | int | widgetCount | ) |
Set the draw call's geometry.
bool UIDrawCall.alwaysOnScreen = false |
BetterList<Color32> UIDrawCall.cols = new BetterList<Color32>() |
int UIDrawCall.depthEnd = int.MinValue |
int UIDrawCall.depthStart = int.MaxValue |
bool UIDrawCall.isDirty = false |
Whether the draw call has changed recently.
UIPanel UIDrawCall.manager |
BetterList<Vector3> UIDrawCall.norms = new BetterList<Vector3>() |
OnRenderCallback UIDrawCall.onRender |
Callback that will be triggered at OnWillRenderObject() time.
UIPanel UIDrawCall.panel |
BetterList<Vector4> UIDrawCall.tans = new BetterList<Vector4>() |
BetterList<Vector2> UIDrawCall.uvs = new BetterList<Vector2>() |
BetterList<Vector3> UIDrawCall.verts = new BetterList<Vector3>() |
int UIDrawCall.widgetCount = 0 |
|
staticget |
List of active draw calls.
|
getset |
Material used by this screen.
|
get |
Transform is cached for speed and efficiency.
|
get |
Dynamically created material used by the draw call to actually draw the geometry.
|
get |
Final render queue used to draw the draw call's geometry.
|
staticget |
List of inactive draw calls. Only used at run-time in order to avoid object creation/destruction.
|
get |
Whether the draw call is currently using a clipped shader.
|
staticget |
|
getset |
Texture used by the material.
|
getset |
Render queue used by the draw call.
|
getset |
Shader used by the material.
|
getset |
Renderer's sorting order, to be used with Unity's 2D system.
|
get |
The number of triangles in this draw call.