unreal.CommonTextStyle
¶
- class unreal.CommonTextStyle(outer=None, name='None')¶
Bases:
unreal.Object
—- All properties must be EditDefaultsOnly, BlueprintReadOnly !!! —–
We return the CDO to blueprints, so we cannot allow any changes (blueprint doesn’t support const variables)
C++ Source:
Plugin: CommonUI
Module: CommonUI
File: CommonTextBlock.h
Editor Properties: (see get_editor_property/set_editor_property)
color
(LinearColor): [Read-Write] The color of the textfont
(SlateFontInfo): [Read-Write] The font to apply at each sizeline_height_percentage
(float): [Read-Write] The amount to scale each lines height by at each sizemargin
(Margin): [Read-Write] The amount of blank space left around the edges of text area at each sizeshadow_color
(LinearColor): [Read-Write] The drop shadow colorshadow_offset
(Vector2D): [Read-Write] The offset of the drop shadow at each sizestrike_brush
(SlateBrush): [Read-Write] The brush used to draw an strike through the text (if any)uses_drop_shadow
(bool): [Read-Write] Whether or not the style uses a drop shadow
- property color¶
[Read-Only] The color of the text
- Type
- property font¶
[Read-Only] The font to apply at each size
- Type
- get_color() → LinearColor¶
Get Color
- Returns
out_color (LinearColor):
- Return type
- get_font() → SlateFontInfo¶
Get Font
- Returns
out_font (SlateFontInfo):
- Return type
- get_shadow_color() → LinearColor¶
Get Shadow Color
- Returns
out_color (LinearColor):
- Return type
- get_strike_brush() → SlateBrush¶
Get Strike Brush
- Returns
out_strike_brush (SlateBrush):
- Return type
- property line_height_percentage¶
[Read-Only] The amount to scale each lines height by at each size
- Type
(float)
- property margin¶
[Read-Only] The amount of blank space left around the edges of text area at each size
- Type
(Margin)
- property shadow_color¶
[Read-Only] The drop shadow color
- Type
- property strike_brush¶
[Read-Only] The brush used to draw an strike through the text (if any)
- Type