TextStudioGlyphGeometryBuffer
public sealed class TextStudioGlyphGeometryBufferReusable destination for provider-supplied convex glyph geometry.
Methods
Section titled “Methods”
Clear()
Section titled “Clear()”public void Clear()Removes all geometry and bounds from the reusable buffer.
SetBounds(Bounds)
Section titled “SetBounds(Bounds)”public void SetBounds(Bounds bounds)Sets explicit bounds for the supplied glyph geometry.
Parameters
| Name | Type |
|---|---|
bounds |
UnityEngine.Bounds |
BeginConvexShape(int)
Section titled “BeginConvexShape(int)”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
AddVertex(Vector3)
Section titled “AddVertex(Vector3)”public bool AddVertex(Vector3 vertex)Adds a vertex to the convex shape currently being written.
Parameters
| Name | Type |
|---|---|
vertex |
UnityEngine.Vector3 |
Returns
System.Boolean
EndConvexShape()
Section titled “EndConvexShape()”public bool EndConvexShape()Completes the current convex shape when it contains at least three vertices.
Returns
System.Boolean
Constructors
Section titled “Constructors”
TextStudioGlyphGeometryBuffer()
Section titled “TextStudioGlyphGeometryBuffer()”public TextStudioGlyphGeometryBuffer()Properties
Section titled “Properties”
Vertices
Section titled “Vertices”public TextStudioReadOnlyBuffer<Vector3> Vertices { get; }Returns
TextStudio.TextStudioReadOnlyBuffer{UnityEngine.Vector3}
ShapeStarts
Section titled “ShapeStarts”public TextStudioReadOnlyBuffer<int> ShapeStarts { get; }Returns
TextStudio.TextStudioReadOnlyBuffer{System.Int32}
ShapeCounts
Section titled “ShapeCounts”public TextStudioReadOnlyBuffer<int> ShapeCounts { get; }Returns
TextStudio.TextStudioReadOnlyBuffer{System.Int32}
VertexCount
Section titled “VertexCount”public int VertexCount { get; }Returns
System.Int32
ShapeCount
Section titled “ShapeCount”public int ShapeCount { get; }Returns
System.Int32
Bounds
Section titled “Bounds”public Bounds Bounds { get; }Returns
UnityEngine.Bounds
HasBounds
Section titled “HasBounds”public bool HasBounds { get; }Returns
System.Boolean
IsEmpty
Section titled “IsEmpty”public bool IsEmpty { get; }Returns
System.Boolean