unreal.DrawDebugStringSettings

class unreal.DrawDebugStringSettings(height: float = 0.0, monospaced: bool = False, width_scale: float = 0.0, height_scale: float = 0.0, line_spacing: float = 0.0, character_spacing: float = 0.0, center_vertically: bool = False, center_horizontally: bool = False)

Bases: StructBase

Settings for debug drawing strings

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 string centered horizontally rather than starting from the top left

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

  • character_spacing (float): [Read-Write] Gaps between characters in cm

  • height (float): [Read-Write] Height of the text

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

  • line_spacing (float): [Read-Write] Scaling factor for the spacing between lines

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

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

property center_horizontally: bool

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

Type:

(bool)

property center_vertically: bool

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

Type:

(bool)

property character_spacing: float

[Read-Write] Gaps between characters in cm

Type:

(float)

property height: float

[Read-Write] Height of the text

Type:

(float)

property height_scale: float

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

Type:

(float)

property line_spacing: float

[Read-Write] Scaling factor for the spacing between lines

Type:

(float)

property monospaced: bool

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

Type:

(bool)

property width_scale: float

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

Type:

(float)