TextStudioReactionCanvasGraphic
public sealed class TextStudioReactionCanvasGraphic : MaskableGraphicDraws a retained native text mesh through normal Canvas masking and hierarchy order.
Methods
Section titled “Methods”
SetSource(Mesh)
Section titled “SetSource(Mesh)”public void SetSource(Mesh mesh)Assigns the retained text mesh, disables raycast interception, and marks Canvas geometry dirty.
Parameters
| Name | Type |
|---|---|
mesh |
UnityEngine.Mesh |
SetSourceMaterial(Material)
Section titled “SetSourceMaterial(Material)”public void SetSourceMaterial(Material source)Assigns the retained source material and updates the Canvas texture binding when it changes.
Parameters
| Name | Type |
|---|---|
source |
UnityEngine.Material |
OnPopulateMesh(VertexHelper)
Section titled “OnPopulateMesh(VertexHelper)”protected override void OnPopulateMesh(VertexHelper helper)Copies the retained mesh’s vertices, attributes, colors, and triangles into Canvas geometry.
Parameters
| Name | Type |
|---|---|
helper |
UnityEngine.UI.VertexHelper |
Constructors
Section titled “Constructors”
TextStudioReactionCanvasGraphic()
Section titled “TextStudioReactionCanvasGraphic()”public TextStudioReactionCanvasGraphic()Properties
Section titled “Properties”
mainTexture
Section titled “mainTexture”public override Texture mainTexture { get; }Returns
UnityEngine.Texture