 |
InstancedTextNodeAddText Method |
Add the specified text to the InstancedTextNode with using simple position and size parameters.
The orientation of the text is defined by the
SetTextDirection(Vector3, Vector3) method.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntaxpublic InstancedText AddText(
string text,
Color4 color,
Vector3 position,
float fontSize,
bool hasBackSide = true
)
Parameters
- text String
- text to add
- color Color4
- color of the text
- position Vector3
- position of the first character (when text is horizontal, this represents the top-left position)
- fontSize Single
- size of the characters in 3D coordinates
- hasBackSide Boolean (Optional)
- when true (by default), then the text will be visible from the back side (another instance of the text will be rendered to show the back size)
Return Value
InstancedTextInstancedText that can be used to change the shown text.
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.InstancedTextNode.AddText(System.String,Ab4d.SharpEngine.Common.Color4,System.Numerics.Vector3,System.Single,System.Boolean)"]
See Also