Scripting API

CanvasRenderer

class in UnityEngine · UnityEngine.UIModule · inherits from Component

25 of 36 of Unity's membersUnity's documentation
In Tassix

What a UI Graphic draws: its mesh, color and texture, as the canvas collects them.

Properties 9

int absoluteDepth { get; }
Rect clippingRect { get; }
bool cull { get; set; }
bool cullTransparentMesh { get; set; }
bool hasMoved { get; }
bool hasPopInstruction { get; set; }
bool hasRectClipping { get; }
int materialCount { get; set; }
int popMaterialCount { get; set; }

Methods 16

void Clear()
void DisableRectClipping()
void EnableRectClipping(Rect rect)
float GetAlpha()
Color GetColor()
float GetInheritedAlpha()
Material? GetMaterial()
Material? GetMaterial(int index)
Mesh? GetMesh()
Material? GetPopMaterial(int index)
void SetAlpha(float alpha)
void SetAlphaTexture(Texture texture)
void SetColor(Color color)
void SetMaterial(Material material, int index)
void SetMaterial(Material material, Texture texture)
void SetMesh(Mesh mesh)

The geometry to draw: a copy of the mesh's vertices, UVs, colors and triangles (the mesh can be reused).

void SetPopMaterial(Material material, int index)
void SetTexture(Texture texture)

Not in Tassix yet 11

AddUIVertexStream CreateUIVertexStream GetSecondaryTexture GetSecondaryTextureCount GetSecondaryTextureName SetSecondaryTexture SetSecondaryTextureCount SplitUIVertexStreams clippingSoftness onRequestRebuild relativeDepth