Click or drag to resize

BitmapFontAddChar Method

Adds a character to the font, where character is the Unicode value, texture is the texture index, rect is the region in the texture (in pixels!), align is the (optional) alignment for the character and advance is the (optional) advance.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void AddChar(
	int character,
	int texture,
	Rect2 rect,
	Vector2? align = null,
	float advance = -1f
)

Parameters

character
Type: SystemInt32

[Missing <param name="character"/> documentation for "M:Godot.BitmapFont.AddChar(System.Int32,System.Int32,Godot.Rect2,System.Nullable{Godot.Vector2},System.Single)"]

texture
Type: SystemInt32

[Missing <param name="texture"/> documentation for "M:Godot.BitmapFont.AddChar(System.Int32,System.Int32,Godot.Rect2,System.Nullable{Godot.Vector2},System.Single)"]

rect
Type: GodotRect2

[Missing <param name="rect"/> documentation for "M:Godot.BitmapFont.AddChar(System.Int32,System.Int32,Godot.Rect2,System.Nullable{Godot.Vector2},System.Single)"]

align (Optional)
Type: SystemNullableVector2
If the parameter is null, then the default value is new Vector2(0, 0)
advance (Optional)
Type: SystemSingle

[Missing <param name="advance"/> documentation for "M:Godot.BitmapFont.AddChar(System.Int32,System.Int32,Godot.Rect2,System.Nullable{Godot.Vector2},System.Single)"]

See Also