Click or drag to resize
Ab4d.SharpEngine logo

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.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public 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

InstancedText
InstancedText 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