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 text

  • font (SlateFontInfo): [Read-Write] Font: The font to apply at each size

  • line_height_percentage (float): [Read-Write] Line Height Percentage: The amount to scale each lines height by at each size

  • margin (Margin): [Read-Write] Margin: The amount of blank space left around the edges of text area at each size

  • shadow_color (LinearColor): [Read-Write] Shadow Color: The drop shadow color

  • shadow_offset (Vector2D): [Read-Write] Shadow Offset: The offset of the drop shadow at each size

  • strike_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

(LinearColor)

property font

[Read-Only] Font: The font to apply at each size

Type

(SlateFontInfo)

get_color() LinearColor

Get Color

Returns

out_color (LinearColor):

Return type

LinearColor

get_font() SlateFontInfo

Get Font

Returns

out_font (SlateFontInfo):

Return type

SlateFontInfo

get_line_height_percentage() float

Get Line Height Percentage

Return type

float

get_margin() Margin

Get Margin

Returns

out_margin (Margin):

Return type

Margin

get_shadow_color() LinearColor

Get Shadow Color

Returns

out_color (LinearColor):

Return type

LinearColor

get_shadow_offset() Vector2D

Get Shadow Offset

Returns

out_shadow_offset (Vector2D):

Return type

Vector2D

get_strike_brush() SlateBrush

Get Strike Brush

Returns

out_strike_brush (SlateBrush):

Return type

SlateBrush

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

(LinearColor)

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

(SlateBrush)

property uses_drop_shadow

[Read-Only] Uses Drop Shadow: Whether or not the style uses a drop shadow

Type

(bool)