unreal.SlateBrush

class unreal.SlateBrush(draw_as: SlateBrushDrawType = Ellipsis, tiling: SlateBrushTileType = Ellipsis, mirroring: SlateBrushMirrorType = Ellipsis, image_size: DeprecateSlateVector2D = Ellipsis, margin: Margin = Ellipsis, tint_color: SlateColor = Ellipsis, outline_settings: SlateBrushOutlineSettings = Ellipsis, resource_object: Object = Ellipsis)

Bases: StructBase

A brush which contains information about how to draw a Slate element

//, meta = (HasNativeMake = “”))

C++ Source:

  • Module: SlateCore

  • File: SlateBrush.h

Editor Properties: (see get_editor_property/set_editor_property)

  • draw_as (SlateBrushDrawType): [Read-Write] How to draw the image

  • image_size (DeprecateSlateVector2D): [Read-Write] Size of the resource in Slate Units

  • image_type (SlateBrushImageType): [Read-Write] The type of image

  • margin (Margin): [Read-Write] The margin to use in Box and Border modes

  • mirroring (SlateBrushMirrorType): [Read-Write] How to mirror the image in Image mode. This is normally only used for dynamic image brushes where the source texture

    comes from a hardware device such as a web camera.

  • outline_settings (SlateBrushOutlineSettings): [Read-Write] How to draw the outline. Currently only used for RoundedBox type brushes.

  • resource_name (Name): [Read-Write] The name of the rendering resource to use

  • resource_object (Object): [Read-Write] The image to render for this brush, can be a UTexture or UMaterialInterface or an object implementing the AtlasedTextureInterface.

  • tiling (SlateBrushTileType): [Read-Write] How to tile the image in Image mode

  • tint_color (SlateColor): [Read-Write] Tinting applied to the image.

property draw_as: SlateBrushDrawType

[Read-Write] How to draw the image

Type:

(SlateBrushDrawType)

property image_size: DeprecateSlateVector2D

[Read-Write] Size of the resource in Slate Units

Type:

(DeprecateSlateVector2D)

property margin: Margin

[Read-Write] The margin to use in Box and Border modes

Type:

(Margin)

property mirroring: SlateBrushMirrorType

[Read-Write] How to mirror the image in Image mode. This is normally only used for dynamic image brushes where the source texture comes from a hardware device such as a web camera.

Type:

(SlateBrushMirrorType)

property outline_settings: SlateBrushOutlineSettings

[Read-Write] How to draw the outline. Currently only used for RoundedBox type brushes.

Type:

(SlateBrushOutlineSettings)

property resource_object: Object

[Read-Write] The image to render for this brush, can be a UTexture or UMaterialInterface or an object implementing the AtlasedTextureInterface.

Type:

(Object)

property texture_object: Object

‘texture_object’ was renamed to ‘resource_object’.

Type:

deprecated

property tiling: SlateBrushTileType

[Read-Write] How to tile the image in Image mode

Type:

(SlateBrushTileType)

property tint_color: SlateColor

[Read-Write] Tinting applied to the image.

Type:

(SlateColor)