unreal.TextBlockStyle

class unreal.TextBlockStyle(font: SlateFontInfo = Ellipsis, color_and_opacity: SlateColor = Ellipsis, shadow_offset: DeprecateSlateVector2D = Ellipsis, shadow_color_and_opacity: LinearColor = Ellipsis, highlight_color: SlateColor = Ellipsis, highlight_shape: SlateBrush = Ellipsis, strike_brush: SlateBrush = Ellipsis, underline_brush: SlateBrush = Ellipsis, transform_policy: TextTransformPolicy = Ellipsis, overflow_policy: TextOverflowPolicy = Ellipsis)

Bases: SlateWidgetStyle

Represents the appearance of an STextBlock

C++ Source:

  • Module: SlateCore

  • File: SlateTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • color_and_opacity (SlateColor): [Read-Write] The color and opacity of this text

  • font (SlateFontInfo): [Read-Write] Font family and size to be used when displaying this text.

  • highlight_color (SlateColor): [Read-Write] The color of highlighted text

  • highlight_shape (SlateBrush): [Read-Write] The shape of highlighted text

  • overflow_policy (TextOverflowPolicy): [Read-Write] Determines what happens to text that is clipped and doesn’t fit within the clip rect of a text widget

  • selected_background_color (SlateColor): [Read-Write] The background color of selected text

  • shadow_color_and_opacity (LinearColor): [Read-Write] The color and opacity of the shadow

  • shadow_offset (DeprecateSlateVector2D): [Read-Write] How much should the shadow be offset? An offset of 0 implies no shadow.

  • strike_brush (SlateBrush): [Read-Write] The brush used to draw an strike through the text (if any)

  • transform_policy (TextTransformPolicy): [Read-Write] The Text Transform Policy (defaults to None)

  • underline_brush (SlateBrush): [Read-Write] The brush used to draw an underline under the text (if any)

property color_and_opacity: SlateColor

[Read-Write] The color and opacity of this text

Type:

(SlateColor)

property font: SlateFontInfo

[Read-Write] Font family and size to be used when displaying this text.

Type:

(SlateFontInfo)

property highlight_color: SlateColor

[Read-Write] The color of highlighted text

Type:

(SlateColor)

property highlight_shape: SlateBrush

[Read-Write] The shape of highlighted text

Type:

(SlateBrush)

property overflow_policy: TextOverflowPolicy

[Read-Write] Determines what happens to text that is clipped and doesn’t fit within the clip rect of a text widget

Type:

(TextOverflowPolicy)

property shadow_color_and_opacity: LinearColor

[Read-Write] The color and opacity of the shadow

Type:

(LinearColor)

property shadow_offset: DeprecateSlateVector2D

[Read-Write] How much should the shadow be offset? An offset of 0 implies no shadow.

Type:

(DeprecateSlateVector2D)

property strike_brush: SlateBrush

[Read-Write] The brush used to draw an strike through the text (if any)

Type:

(SlateBrush)

property transform_policy: TextTransformPolicy

[Read-Write] The Text Transform Policy (defaults to None)

Type:

(TextTransformPolicy)

property underline_brush: SlateBrush

[Read-Write] The brush used to draw an underline under the text (if any)

Type:

(SlateBrush)