 |
VectorFontFactory.CreateIndividualTextMeshes Method |
CreateIndividualTextMeshes creates StandardMesh objects for each character from the specified text.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntaxpublic List<(int charIndexInText, char character, StandardMesh mesh)> CreateIndividualTextMeshes(
string text,
Vector3 textPosition,
TextPositionTypes positionType,
Vector3 textDirection,
Vector3 upDirection,
float fontSize,
string? meshNamePrefix = null
)
Parameters
- text String
- text to render (can have multiple lines)
- textPosition Vector3
- position as Vector3
- positionType TextPositionTypes
- type of text position; note that TextPositionTypes also defines the Baseline value
- textDirection Vector3
- text direction as Vector3
- upDirection Vector3
- text up direction as Vector3
- fontSize Single
- font size
- meshNamePrefix String (Optional)
- optional prefix used for naming the meshes - the character is added to the mesh prefix; when null, then the created meshes do not have any name
Return Value
List<ValueTuple<Int32,
Char,
StandardMesh>>StandardMesh with the specified text and at the specified position, direction and size. When text is empty or contains only white space characters, then null is returned.
See Also