FSlateMaterialBrush

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

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.

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

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss