Click or drag to resize

CanvasRendererAddText Method (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(
	string text,
	Vector2 position,
	EHorizontalAlignment horizontalAlign,
	EVerticalAlignment verticalAlign,
	ColorValue color,
	CanvasRendererAddTextOptions options = CanvasRendererAddTextOptions.PixelAlign
)

Parameters

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