Text | |
The TextBlockFactory type exposes the following members.
| Name | Description | |
|---|---|---|
| BackgroundColor | Color4 that specifies the color of the background panel. When set to Color4.Transparent, then the background panel is not rendered. Default value is Transparent. | |
| BackgroundHorizontalPadding | Float value that defines the horizontal padding of the background plane - how much bigger is the background plane. Default value is 8. | |
| BackgroundOffset | Float that defined how far from the background plane the text will be. This prevents z-fighting artifacts (merging the text with the background). Default value is 0.05. Increase this value if some artifacts are visible. | |
| BackgroundVerticalPadding | Float value that defines the vertical padding of the background plane - how much bigger is the background plane. Default value is 4. | |
| BackMaterialColor | Color4 that defines the background color of a BackMaterial for PlaneModelNode that is created to render background panel. When set to Color4.Transparent, then BackMaterial is set to null. Default value is Color4.Black. | |
| BorderColor | Color4 that defines the color of the border. When set to Color4.Transparent, then the border is not rendered. Default value is Color4.Black. | |
| BorderThickness | Float value that specifies the thickness of the border. When set to 0, then the border is not rendered. Default value is 0. | |
| FontSize | Size of the font. 14 by default. | |
| IsSolidColorMaterial | True when a SolidColorMaterial is used to render the text. In this case the text will always be rendered with the specified color and will not be shaded by lighting. True by default. | |
| Scene | Gets the Scene that was used to initialize this TextBlockFactory. | |
| TextColor | Color4 of the text. Black by default. |