Table of Contents

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

The font; Default when null.

[DataMemberIgnore]
public MeshFont? Font { get; set; }

Property Value

MeshFont

Options

Size, depth and layout.

[DataMemberIgnore]
public TextMeshOptions Options { get; set; }

Property Value

TextMeshOptions

Text

The text; \n starts a new line.

public string Text { get; set; }

Property Value

string

Methods

CreatePrimitiveMeshData()

protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()

Returns

GeometricMeshData<VertexPositionNormalTexture>