Api Sandbox TextRenderer
class

TextRenderer

public sealed class TextRenderer : Renderer

Renders text in the world

Constructors

TextRenderer()

Properties

Name Type Description
TextScope Scope The text scope defines what text to render and it's visual properties (such as font, color, outline, etc.)
Scale Single The size of the text in the world. This is different from the font size, which is defined in the TextScope and determines resolution of the rendered text.
HorizontalAlignment HAlignment The horizontal alignment of the text in the world.
VerticalAlignment VAlignment The vertical alignment of the text in the world.
BlendMode BlendMode The blend mode of the text. This determines how the text is rendered over the world.
FogStrength Single The strength of the fog effect applied to the text. This determines how much the text blends with any fog in the scene.
Color Color The color of the text from the TextScope.
FontSize Single The font size of the text from the TextScope. This is different from the Scale, which determines how large the text appears in the world.
FontWeight Int32
FontFamily String
Text String
ComponentVersion virtual Int32
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.TextRenderer