unreal.TextBlockStyle

class unreal.TextBlockStyle(font=[None, None, [0, False, False, None, [0.0, 0.0, 0.0, 1.0]], 'None', 24], color_and_opacity=[[1.0, 0.0, 1.0, 1.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], shadow_offset=[0.0, 0.0], shadow_color_and_opacity=[0.0, 0.0, 0.0, 1.0], highlight_color=[0.0, 0.0, 0.0, 0.0], highlight_shape=[[32.0, 32.0], [0.0, 0.0, 0.0, 0.0], [[1.0, 1.0, 1.0, 1.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], None, SlateBrushDrawType.IMAGE, SlateBrushTileType.NO_TILE, SlateBrushMirrorType.NO_MIRROR], strike_brush=[[32.0, 32.0], [0.0, 0.0, 0.0, 0.0], [[1.0, 1.0, 1.0, 1.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], None, SlateBrushDrawType.IMAGE, SlateBrushTileType.NO_TILE, SlateBrushMirrorType.NO_MIRROR], underline_brush=[[32.0, 32.0], [0.0, 0.0, 0.0, 0.0], [[1.0, 1.0, 1.0, 1.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], None, SlateBrushDrawType.IMAGE, SlateBrushTileType.NO_TILE, SlateBrushMirrorType.NO_MIRROR])

Bases: unreal.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 (LinearColor): [Read-Write] The color of highlighted text
  • highlight_shape (SlateBrush): [Read-Write] The shape of highlighted text
  • 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 (Vector2D): [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)
  • underline_brush (SlateBrush): [Read-Write] The brush used to draw an underline under the text (if any)
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

(LinearColor) – [Read-Write] The color of highlighted text

highlight_shape

(SlateBrush) – [Read-Write] The shape of highlighted text

shadow_color_and_opacity

(LinearColor) – [Read-Write] The color and opacity of the shadow

shadow_offset

(Vector2D) – [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)

underline_brush

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