Class TextProceduralModel
- Namespace
- Stride.CommunityToolkit.Rendering.ProceduralModels
- Assembly
- Stride.CommunityToolkit.dll
A procedural model of solid lettering: Text in a Font, built by
TextMesh. What Primitive3D.Text turns into.
public class TextProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
- Inheritance
-
TextProceduralModel
- Implements
- Inherited Members
Remarks
The font and the options are runtime objects, not asset data, so this model is for code; Game Studio cannot serialise it.
Properties
Font
[DataMemberIgnore]
public MeshFont? Font { get; set; }
Property Value
Options
Size, depth and layout.
[DataMemberIgnore]
public TextMeshOptions Options { get; set; }
Property Value
Text
The text; \n starts a new line.
public string Text { get; set; }
Property Value
Methods
CreatePrimitiveMeshData()
protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()