TextStudioBackendShapedPrimitive
public readonly struct TextStudioBackendShapedPrimitiveOwned filled vector output which has no shaped font-glyph record, such as a formula rule.
Constructors
Section titled “Constructors”
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 |
Properties
Section titled “Properties”
TextUnitIndex
Section titled “TextUnitIndex”public int TextUnitIndex { get; }Returns
System.Int32
ClusterIndex
Section titled “ClusterIndex”public int ClusterIndex { get; }Returns
System.Int32
SourceStart
Section titled “SourceStart”public int SourceStart { get; }Returns
System.Int32
SourceLength
Section titled “SourceLength”public int SourceLength { get; }Returns
System.Int32
OccurrenceId
Section titled “OccurrenceId”public ulong OccurrenceId { get; }Returns
System.UInt64
Geometry
Section titled “Geometry”public CurveGlyph Geometry { get; }Returns
TextStudio.Geometry.CurveGlyph
BaselineOrigin
Section titled “BaselineOrigin”public Vector2 BaselineOrigin { get; }Returns
UnityEngine.Vector2
GeometryScale
Section titled “GeometryScale”public float GeometryScale { get; }Returns
System.Single
Colors
Section titled “Colors”public TextStudioGlyphColorQuad Colors { get; }Returns
TextStudio.TextStudioGlyphColorQuad
AssemblyId
Section titled “AssemblyId”public int AssemblyId { get; }Returns
System.Int32
SourceContentIdentity
Section titled “SourceContentIdentity”public Hash128 SourceContentIdentity { get; }Returns
UnityEngine.Hash128
IsValid
Section titled “IsValid”public bool IsValid { get; }Returns
System.Boolean