unreal.DrawDebugCanvasTextSettings

class unreal.DrawDebugCanvasTextSettings(monospaced: bool = False, font: Font = Ellipsis, width_scale: float = 0.0, height_scale: float = 0.0, shadow: bool = False, shadow_color: LinearColor = Ellipsis, shadow_offset: Vector2D = Ellipsis, outline: bool = False, outline_color: LinearColor = Ellipsis, center_vertically: bool = False, center_horizontally: bool = False)

Bases: StructBase

Settings for debug drawing canvas text

C++ Source:

  • Plugin: DrawDebugLibrary

  • Module: DrawDebugLibrary

  • File: DrawDebugLibrary.h

Editor Properties: (see get_editor_property/set_editor_property)

  • center_horizontally (bool): [Read-Write] Draws the text centered horizontally rather than starting from the top left

  • center_vertically (bool): [Read-Write] Draws the text centered vertically rather than starting from the top left

  • font (Font): [Read-Write] Custom font to use

  • height_scale (float): [Read-Write] Scaling factor for the height of the characters

  • monospaced (bool): [Read-Write] If to draw using a monospaced font

  • outline (bool): [Read-Write] If to draw an outline around the text

  • outline_color (LinearColor): [Read-Write] Color of the outline

  • shadow (bool): [Read-Write] If to draw a shadow under the text

  • shadow_color (LinearColor): [Read-Write] Color of the shadow

  • shadow_offset (Vector2D): [Read-Write] Offset of the shadow

  • width_scale (float): [Read-Write] Scaling factor for the width of the characters

property center_horizontally: bool

[Read-Write] Draws the text centered horizontally rather than starting from the top left

Type:

(bool)

property center_vertically: bool

[Read-Write] Draws the text centered vertically rather than starting from the top left

Type:

(bool)

property font: Font

[Read-Write] Custom font to use

Type:

(Font)

property height_scale: float

[Read-Write] Scaling factor for the height of the characters

Type:

(float)

property monospaced: bool

[Read-Write] If to draw using a monospaced font

Type:

(bool)

property outline: bool

[Read-Write] If to draw an outline around the text

Type:

(bool)

property outline_color: LinearColor

[Read-Write] Color of the outline

Type:

(LinearColor)

property shadow: bool

[Read-Write] If to draw a shadow under the text

Type:

(bool)

property shadow_color: LinearColor

[Read-Write] Color of the shadow

Type:

(LinearColor)

property shadow_offset: Vector2D

[Read-Write] Offset of the shadow

Type:

(Vector2D)

property width_scale: float

[Read-Write] Scaling factor for the width of the characters

Type:

(float)