Skip to content

TextStudioRenderPropertyView

StructTextStudioTextStudio
public readonly struct TextStudioRenderPropertyView

Transient read-only view over pooled renderer-property planes.

public TextStudioRenderPropertyGlyphView GetGlyph(int glyphIndex)

Creates a read-only view scoped to the supplied glyph index.

Parameters

Name Type
glyphIndex System.Int32

Returns

TextStudio.TextStudioRenderPropertyGlyphView

public bool HasAnyForGlyph(int glyphIndex)

Returns whether this valid property view contains any applied render-property value for the supplied glyph.

Parameters

Name Type
glyphIndex System.Int32

Returns

System.Boolean

TryGet(string, int, out TextStudioRenderPropertyValue, out TextStudioSurfaceMask)

Section titled “TryGet(string, int, out TextStudioRenderPropertyValue, out TextStudioSurfaceMask)”
public bool TryGet(string propertyId, int glyphIndex, out TextStudioRenderPropertyValue value, out TextStudioSurfaceMask surfaceMask)

Attempts to read an applied typed render-property value and its surface mask for the supplied glyph.

Parameters

Name Type
propertyId System.String
glyphIndex System.Int32
value TextStudio.TextStudioRenderPropertyValue
surfaceMask TextStudio.TextStudioSurfaceMask

Returns

System.Boolean

public bool IsCreated { get; }

Returns

System.Boolean

public bool IsEmpty { get; }

Returns

System.Boolean

public int PropertyCount { get; }

Returns

System.Int32

public int GlyphCount { get; }

Returns

System.Int32

public uint ContentVersion { get; }

Returns

System.UInt32