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

NameType
meshUnityEngine.Mesh
public void SetSourceMaterial(Material source)

Assigns the retained source material and updates the Canvas texture binding when it changes.

Parameters

NameType
sourceUnityEngine.Material
protected override void OnPopulateMesh(VertexHelper helper)

Copies the retained mesh’s vertices, attributes, colors, and triangles into Canvas geometry.

Parameters

NameType
helperUnityEngine.UI.VertexHelper

public TextStudioReactionCanvasGraphic()

public override Texture mainTexture { get; }

Returns

UnityEngine.Texture