 |
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: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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.
See Also