Class GlyphMesh
One glyph of a string as its own mesh, centred on itself, with where it belongs in the text: what CreateGlyphs(MeshFont, string, TextMeshOptions?) returns, for one body or one animation per letter.
public sealed record GlyphMesh : IEquatable<GlyphMesh>
- Inheritance
-
GlyphMesh
- Implements
Constructors
GlyphMesh(int, Vector3, GeometricMeshData<VertexPositionNormalTexture>)
One glyph of a string as its own mesh, centred on itself, with where it belongs in the text: what CreateGlyphs(MeshFont, string, TextMeshOptions?) returns, for one body or one animation per letter.
public GlyphMesh(int Codepoint, Vector3 Position, GeometricMeshData<VertexPositionNormalTexture> Mesh)
Parameters
CodepointintThe character the glyph draws.
PositionVector3The centre of the glyph's bounds within the text, in world units; put the entity there.
MeshGeometricMeshData<VertexPositionNormalTexture>The glyph as a solid, centred on the origin.
Properties
Codepoint
The character the glyph draws.
public int Codepoint { get; init; }
Property Value
Mesh
The glyph as a solid, centred on the origin.
public GeometricMeshData<VertexPositionNormalTexture> Mesh { get; init; }
Property Value
Position
The centre of the glyph's bounds within the text, in world units; put the entity there.
public Vector3 Position { get; init; }