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] Color: The color of the textfont(SlateFontInfo): [Read-Write] Font: The font to apply at each sizeline_height_percentage(float): [Read-Write] Line Height Percentage: The amount to scale each lines height by at each sizemargin(Margin): [Read-Write] Margin: The amount of blank space left around the edges of text area at each sizeshadow_color(LinearColor): [Read-Write] Shadow Color: The drop shadow colorshadow_offset(Vector2D): [Read-Write] Shadow Offset: The offset of the drop shadow at each sizestrike_brush(SlateBrush): [Read-Write] Strike Brush: The brush used to draw an strike through the text (if any)uses_drop_shadow(bool): [Read-Write] Uses Drop Shadow: Whether or not the style uses a drop shadow
- property color¶
[Read-Only] Color: The color of the text
- Type
- property font¶
[Read-Only] Font: 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] Line Height Percentage: The amount to scale each lines height by at each size
- Type
(float)
- property margin¶
[Read-Only] Margin: The amount of blank space left around the edges of text area at each size
- Type
(Margin)
- property shadow_color¶
[Read-Only] Shadow Color: The drop shadow color
- Type
- property shadow_offset¶
[Read-Only] Shadow Offset: The offset of the drop shadow at each size
- Type
(Vector2D)
- property strike_brush¶
[Read-Only] Strike Brush: The brush used to draw an strike through the text (if any)
- Type