FSlateMaterialBrush

Dynamic brush for referencing a [UMaterial](API\Runtime\Engine\Materials\UMaterial).

Choose your operating system:

Windows

macOS

Linux

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.

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

Name Description

Public function

FSlateMaterialBrush

(
    const FVector2D& InImageSize
)

Creates and initializes a new instance.

Public function

FSlateMaterialBrush

(
    UMaterialInterface& InMaterial,
    const FVector2D& InImageSize
)

Creates and initializes a new instance.

Functions

Name Description

Public function

void

 

SetMaterial

(
    UMaterialInterface* InMaterial
)

Sets the material to use.