MeshGenerationContext.DrawText

Declaration

public void DrawText(string text, Vector2 pos, float fontSize, Color color, TextCore.Text.FontAsset font);

Parameters

text The text to display.
pos The start position where the text will be displayed.
fontSize The font size to use.
color The text color.
font The font asset to use. If the value is null, the font asset of the VisualElement style is used instead. For more information, refer to <see cref="IStyle.unityFontDefinition" />.

Description

Draw a string of text.


Did you find this page useful? Please give it a rating: