Click or drag to resize
Ab4d.SharpEngine logo

TextBlockFactory Properties

The TextBlockFactory type exposes the following members.

Properties
 NameDescription
Public propertyBackgroundColor 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.
Public propertyBackgroundHorizontalPadding Float value that defines the horizontal padding of the background plane - how much bigger is the background plane. Default value is 8.
Public propertyBackgroundOffset Float that defined how far from the background plane the text will be. This prevents z-fighting artifacts (merging the text with the backgroun). Default value is 0.05. Increase this value if some artifacts are visible.
Public propertyBackgroundVerticalPadding Float value that defines the vertical padding of the background plane - how much bigger is the background plane. Default value is 4.
Public propertyBackMaterialColor 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.
Public propertyBorderColor Color4 that defines the color of the border. When set to Color4.Transparent, then the border is not rendered. Default value is Color4.Black.
Public propertyBorderThickness Float value that specifies the thickness of the border. When set to 0, then the border is not rendered. Default value is 0.
Public propertyFontSize Size of the font. 14 by default.
Public propertyIsSolidColorMaterial True when a SolidColorMaterial is used to render the text. In this case the text will be always rendered with the specified color and will not be shaded by lighting. True by default.
Public propertyTextColor Color4 of the text. Black by default.
Top
See Also