Class CanvasRenderer
Inheritance
CanvasRenderer
Assembly: UnityEngine.dll
Syntax
public sealed class CanvasRenderer : Component
Properties
absoluteDepth
Declaration
public int absoluteDepth { get; }
Property Value
cull
Declaration
public bool cull { get; set; }
Property Value
cullTransparentMesh
Declaration
public bool cullTransparentMesh { get; set; }
Property Value
hasMoved
Declaration
public bool hasMoved { get; }
Property Value
hasPopInstruction
Declaration
public bool hasPopInstruction { get; set; }
Property Value
hasRectClipping
Declaration
public bool hasRectClipping { get; }
Property Value
|
Improve this Doc
View Source
isMask
Declaration
[Obsolete("isMask is no longer supported.See EnableClipping for vertex clipping configuration", false)]
public bool isMask { get; set; }
Property Value
materialCount
Declaration
public int materialCount { get; set; }
Property Value
popMaterialCount
Declaration
public int popMaterialCount { get; set; }
Property Value
relativeDepth
Declaration
public int relativeDepth { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddUIVertexStream(List<UIVertex>, List<Vector3>, List<Color32>, List<Vector2>, List<Vector2>, List<Vector2>, List<Vector2>, List<Vector3>, List<Vector4>)
Declaration
public static void AddUIVertexStream(List<UIVertex> verts, List<Vector3> positions, List<Color32> colors, List<Vector2> uv0S, List<Vector2> uv1S, List<Vector2> uv2S, List<Vector2> uv3S, List<Vector3> normals, List<Vector4> tangents)
Parameters
|
Improve this Doc
View Source
AddUIVertexStream(List<UIVertex>, List<Vector3>, List<Color32>, List<Vector2>, List<Vector2>, List<Vector3>, List<Vector4>)
Declaration
public static void AddUIVertexStream(List<UIVertex> verts, List<Vector3> positions, List<Color32> colors, List<Vector2> uv0S, List<Vector2> uv1S, List<Vector3> normals, List<Vector4> tangents)
Parameters
Clear()
Declaration
|
Improve this Doc
View Source
CreateUIVertexStream(List<UIVertex>, List<Vector3>, List<Color32>, List<Vector2>, List<Vector2>, List<Vector2>, List<Vector2>, List<Vector3>, List<Vector4>, List<Int32>)
Declaration
public static void CreateUIVertexStream(List<UIVertex> verts, List<Vector3> positions, List<Color32> colors, List<Vector2> uv0S, List<Vector2> uv1S, List<Vector2> uv2S, List<Vector2> uv3S, List<Vector3> normals, List<Vector4> tangents, List<int> indices)
Parameters
|
Improve this Doc
View Source
CreateUIVertexStream(List<UIVertex>, List<Vector3>, List<Color32>, List<Vector2>, List<Vector2>, List<Vector3>, List<Vector4>, List<Int32>)
Declaration
public static void CreateUIVertexStream(List<UIVertex> verts, List<Vector3> positions, List<Color32> colors, List<Vector2> uv0S, List<Vector2> uv1S, List<Vector3> normals, List<Vector4> tangents, List<int> indices)
Parameters
DisableRectClipping()
Declaration
public void DisableRectClipping()
EnableRectClipping(Rect)
Declaration
public void EnableRectClipping(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
|
Improve this Doc
View Source
GetAlpha()
Declaration
Returns
GetColor()
Declaration
Returns
GetInheritedAlpha()
Declaration
public float GetInheritedAlpha()
Returns
|
Improve this Doc
View Source
GetMaterial()
Declaration
public Material GetMaterial()
Returns
GetMaterial(Int32)
Declaration
public Material GetMaterial(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
GetPopMaterial(Int32)
Declaration
public Material GetPopMaterial(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
SetAlpha(Single)
Declaration
public void SetAlpha(float alpha)
Parameters
Type |
Name |
Description |
Single |
alpha |
|
SetAlphaTexture(Texture)
Declaration
public void SetAlphaTexture(Texture texture)
Parameters
Type |
Name |
Description |
Texture |
texture |
|
SetColor(Color)
Declaration
public void SetColor(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
SetMaterial(Material, Int32)
Declaration
public void SetMaterial(Material material, int index)
Parameters
|
Improve this Doc
View Source
SetMaterial(Material, Texture)
Declaration
public void SetMaterial(Material material, Texture texture)
Parameters
SetMesh(Mesh)
Declaration
public void SetMesh(Mesh mesh)
Parameters
Type |
Name |
Description |
Mesh |
mesh |
|
SetPopMaterial(Material, Int32)
Declaration
public void SetPopMaterial(Material material, int index)
Parameters
SetTexture(Texture)
Declaration
public void SetTexture(Texture texture)
Parameters
Type |
Name |
Description |
Texture |
texture |
|
|
Improve this Doc
View Source
SetVertices(List<UIVertex>)
Declaration
[Obsolete("UI System now uses meshes.Generate a mesh and use 'SetMesh' instead", false)]
public void SetVertices(List<UIVertex> vertices)
Parameters
|
Improve this Doc
View Source
SetVertices(UIVertex[], Int32)
Declaration
[Obsolete("UI System now uses meshes.Generate a mesh and use 'SetMesh' instead", false)]
public void SetVertices(UIVertex[] vertices, int size)
Parameters
|
Improve this Doc
View Source
SplitUIVertexStreams(List<UIVertex>, List<Vector3>, List<Color32>, List<Vector2>, List<Vector2>, List<Vector2>, List<Vector2>, List<Vector3>, List<Vector4>, List<Int32>)
Declaration
public static void SplitUIVertexStreams(List<UIVertex> verts, List<Vector3> positions, List<Color32> colors, List<Vector2> uv0S, List<Vector2> uv1S, List<Vector2> uv2S, List<Vector2> uv3S, List<Vector3> normals, List<Vector4> tangents, List<int> indices)
Parameters
|
Improve this Doc
View Source
SplitUIVertexStreams(List<UIVertex>, List<Vector3>, List<Color32>, List<Vector2>, List<Vector2>, List<Vector3>, List<Vector4>, List<Int32>)
Declaration
public static void SplitUIVertexStreams(List<UIVertex> verts, List<Vector3> positions, List<Color32> colors, List<Vector2> uv0S, List<Vector2> uv1S, List<Vector3> normals, List<Vector4> tangents, List<int> indices)
Parameters
Events
|
Improve this Doc
View Source
onRequestRebuild
Declaration
public static event CanvasRenderer.OnRequestRebuild onRequestRebuild
Event Type
Extension Methods