 |
TextBlockFactoryCreateTextBlock(String, Vector3, Single, Single, String) Method |
CreateTextBlock that creates a GroupNode with text at the specified center position and text orientation.
Color of the text, background and the border is specified with the properties in this class.
To align the text to a specific position use the overload that takes position and positionType.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntaxpublic GroupNode CreateTextBlock(
string text,
Vector3 centerPosition,
float textAttitude = 0f,
float textHeading = 0f,
string? name = null
)
Parameters
- text String
- text
- centerPosition Vector3
- center position as Vector3
- textAttitude Single (Optional)
- angle in degrees around X vector (1, 0, 0); zero by default
- textHeading Single (Optional)
- angle in degrees around Y vector (0, 1, 0); zero by default
- name String (Optional)
- optional name of the created GroupNode
Return Value
GroupNodeGroupNode with one or more PlaneModelNode that show the specified text, background and border.
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.TextBlockFactory.CreateTextBlock(System.String,System.Numerics.Vector3,System.Single,System.Single,System.String)"]
See Also