Navigation
Unreal Engine C++ API Reference > Runtime > Slate
Inheritance Hierarchy
- FSlateBrush
- FSlateMaterialBrush
References
Module | Slate |
Header | /Engine/Source/Runtime/Slate/Public/SlateMaterialBrush.h |
Include | #include "SlateMaterialBrush.h" |
Syntax
struct FSlateMaterialBrush : public FSlateBrush
Remarks
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.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FSlateMaterialBrush
(
const UE::Slate::FDeprecateVector2DParameter& InImageSize |
Creates and initializes a new instance. | |
![]() |
FSlateMaterialBrush
(
UMaterialInterface& InMaterial, |
Creates and initializes a new instance. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | SetMaterial
(
UMaterialInterface* InMaterial |
Sets the material to use. |