Skip to content

TextStudioGlyphGeometryBuffer

ClassTextStudioTextStudio
public sealed class TextStudioGlyphGeometryBuffer

Reusable destination for provider-supplied convex glyph geometry.

public void Clear()

Removes all geometry and bounds from the reusable buffer.

public void SetBounds(Bounds bounds)

Sets explicit bounds for the supplied glyph geometry.

Parameters

Name Type
bounds UnityEngine.Bounds
public bool BeginConvexShape(int expectedVertexCount = 0)

Begins a convex shape and optionally reserves space for its vertices.

Parameters

Name Type
expectedVertexCount System.Int32

Returns

System.Boolean

public bool AddVertex(Vector3 vertex)

Adds a vertex to the convex shape currently being written.

Parameters

Name Type
vertex UnityEngine.Vector3

Returns

System.Boolean

public bool EndConvexShape()

Completes the current convex shape when it contains at least three vertices.

Returns

System.Boolean

public TextStudioGlyphGeometryBuffer()

public TextStudioReadOnlyBuffer<Vector3> Vertices { get; }

Returns

TextStudio.TextStudioReadOnlyBuffer{UnityEngine.Vector3}

public TextStudioReadOnlyBuffer<int> ShapeStarts { get; }

Returns

TextStudio.TextStudioReadOnlyBuffer{System.Int32}

public TextStudioReadOnlyBuffer<int> ShapeCounts { get; }

Returns

TextStudio.TextStudioReadOnlyBuffer{System.Int32}

public int VertexCount { get; }

Returns

System.Int32

public int ShapeCount { get; }

Returns

System.Int32

public Bounds Bounds { get; }

Returns

UnityEngine.Bounds

public bool HasBounds { get; }

Returns

System.Boolean

public bool IsEmpty { get; }

Returns

System.Boolean