Click or drag to resize
Ab4d.SharpEngine logo

TextBlockFactoryCreateTextBlock(String, Vector3, PositionTypes, Single, Single, String) Method

CreateTextBlock that creates a GroupNode with text at the specified position, position type and text orientation. Color of the text, background and the border is specified with the properties in this class.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public GroupNode CreateTextBlock(
	string text,
	Vector3 position,
	PositionTypes positionType,
	float textAttitude = 0f,
	float textHeading = 0f,
	string? name = null
)

Parameters

text  String
text
position  Vector3
position as Vector3
positionType  PositionTypes
type of positions as PositionTypes
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

GroupNode
GroupNode with one or more PlaneModelNode that show the specified text, background and border.
See Also