unreal.SlateBrush
¶
- class unreal.SlateBrush(image_size=[32.0, 32.0], margin=[0.0, 0.0, 0.0, 0.0], tint_color=[[1.0, 1.0, 1.0, 1.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], outline_settings=[[0.0, 0.0, 0.0, 1.0], [[0.0, 0.0, 0.0, 0.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], 0.0, SlateBrushRoundingType.HALF_HEIGHT_RADIUS, False], resource_object=None, draw_as=SlateBrushDrawType.IMAGE, tiling=SlateBrushTileType.NO_TILE, mirroring=SlateBrushMirrorType.NO_MIRROR)¶
Bases:
unreal.StructBase
- An 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] Draw As: How to draw the imageimage_size
(Vector2D): [Read-Write] Image Size: Size of the resource in Slate Unitsmargin
(Margin): [Read-Write] Margin: The margin to use in Box and Border modesmirroring
(SlateBrushMirrorType): [Read-Write] Mirroring: How to mirror the image in Image mode. This is normally only used for dynamic image brushes where the source texturecomes from a hardware device such as a web camera.
outline_settings
(SlateBrushOutlineSettings): [Read-Write] Outline Settings: How to draw the outline. Currently only used for RoundedBox type brushes.resource_object
(Object): [Read-Write] Resource Object: The image to render for this brush, can be a UTexture or UMaterialInterface or an object implementing the AtlasedTextureInterface.tiling
(SlateBrushTileType): [Read-Write] Tiling: How to tile the image in Image modetint_color
(SlateColor): [Read-Write] Tint Color: Tinting applied to the image.
- property draw_as¶
[Read-Write] Draw As: How to draw the image
- Type
- property mirroring¶
[Read-Write] Mirroring: 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
- property outline_settings¶
[Read-Write] Outline Settings: How to draw the outline. Currently only used for RoundedBox type brushes.
- Type
- property resource_object¶
[Read-Write] Resource Object: The image to render for this brush, can be a UTexture or UMaterialInterface or an object implementing the AtlasedTextureInterface.
- Type
(Object)
- property texture_object¶
‘texture_object’ was renamed to ‘resource_object’.
- Type
deprecated
- property tiling¶
[Read-Write] Tiling: How to tile the image in Image mode
- Type
- property tint_color¶
[Read-Write] Tint Color: Tinting applied to the image.
- Type