Skip to content

TextStudioReactionCanvasGraphic

ClassTextStudioTextStudio
public sealed class TextStudioReactionCanvasGraphic : MaskableGraphic

Draws a retained native text mesh through normal Canvas masking and hierarchy order.

public void SetSource(Mesh mesh)

Assigns the retained text mesh, disables raycast interception, and marks Canvas geometry dirty.

Parameters

Name Type
mesh UnityEngine.Mesh
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
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

public TextStudioReactionCanvasGraphic()

public override Texture mainTexture { get; }

Returns

UnityEngine.Texture