Click or drag to resize

CanvasRendererAddText Method (FontComponent, Double, String, Vector2, EHorizontalAlignment, EVerticalAlignment, ColorValue, CanvasRendererAddTextOptions)

Adds text to rendering queue.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public void AddText(
	FontComponent font,
	double fontSize,
	string text,
	Vector2 position,
	EHorizontalAlignment horizontalAlign,
	EVerticalAlignment verticalAlign,
	ColorValue color,
	CanvasRendererAddTextOptions options = CanvasRendererAddTextOptions.PixelAlign
)

Parameters

font
Type: NeoAxisFontComponent
The text font.
fontSize
Type: SystemDouble
text
Type: SystemString
The text.
position
Type: NeoAxisVector2
The text position.
horizontalAlign
Type: NeoAxisEHorizontalAlignment
The text horizontal align.
verticalAlign
Type: NeoAxisEVerticalAlignment
The text vertical align.
color
Type: NeoAxisColorValue
The text color.
options (Optional)
Type: NeoAxisCanvasRendererAddTextOptions
See Also