Navigation
API > API/Runtime > API/Runtime/Slate
Dynamic brush for referencing a UMaterial.
Note: This brush nor the slate renderer holds a strong reference to the material. You are responsible for maintaining the lifetime of the brush and material object.
| Name | FSlateMaterialBrush |
| Type | struct |
| Header File | /Engine/Source/Runtime/Slate/Public/SlateMaterialBrush.h |
| Include Path | #include "SlateMaterialBrush.h" |
Syntax
struct FSlateMaterialBrush : public FSlateBrush
Inheritance Hierarchy
- FSlateBrushFixLayout → FSlateBrush → FSlateMaterialBrush
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSlateMaterialBrush
(
const UE::Slate::FDeprecateVector2DParameter& InImageSize |
Creates and initializes a new instance. | SlateMaterialBrush.h | |
FSlateMaterialBrush
(
UMaterialInterface& InMaterial, |
Creates and initializes a new instance. | SlateMaterialBrush.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetMaterial
(
UMaterialInterface* InMaterial |
Sets the material to use. | SlateMaterialBrush.h |