Skip to content

TextStudioBackendShapedPrimitive

StructTextStudioTextStudio
public readonly struct TextStudioBackendShapedPrimitive

Owned filled vector output which has no shaped font-glyph record, such as a formula rule.

TextStudioBackendShapedPrimitive(int, int, int, int, ulong, CurveGlyph, Vector2, float, TextStudioGlyphColorQuad, int, Hash128)

Section titled “TextStudioBackendShapedPrimitive(int, int, int, int, ulong, CurveGlyph, Vector2, float, TextStudioGlyphColorQuad, int, Hash128)”
public TextStudioBackendShapedPrimitive(int textUnitIndex, int clusterIndex, int sourceStart, int sourceLength, ulong occurrenceId, CurveGlyph geometry, Vector2 baselineOrigin, float geometryScale, TextStudioGlyphColorQuad colors, int assemblyId = 0, Hash128 sourceContentIdentity = null)

Describes a filled vector primitive and its placement, source identity, and colors.

Parameters

Name Type
textUnitIndex System.Int32
clusterIndex System.Int32
sourceStart System.Int32
sourceLength System.Int32
occurrenceId System.UInt64
geometry TextStudio.Geometry.CurveGlyph
baselineOrigin UnityEngine.Vector2
geometryScale System.Single
colors TextStudio.TextStudioGlyphColorQuad
assemblyId System.Int32
sourceContentIdentity UnityEngine.Hash128

public int TextUnitIndex { get; }

Returns

System.Int32

public int ClusterIndex { get; }

Returns

System.Int32

public int SourceStart { get; }

Returns

System.Int32

public int SourceLength { get; }

Returns

System.Int32

public ulong OccurrenceId { get; }

Returns

System.UInt64

public CurveGlyph Geometry { get; }

Returns

TextStudio.Geometry.CurveGlyph

public Vector2 BaselineOrigin { get; }

Returns

UnityEngine.Vector2

public float GeometryScale { get; }

Returns

System.Single

public TextStudioGlyphColorQuad Colors { get; }

Returns

TextStudio.TextStudioGlyphColorQuad

public int AssemblyId { get; }

Returns

System.Int32

public Hash128 SourceContentIdentity { get; }

Returns

UnityEngine.Hash128

public bool IsValid { get; }

Returns

System.Boolean