FSlateBrush::GetResourceObject

Gets the [UObject](API\Runtime\CoreUObject\UObject\UObject) that represents the brush resource, if any.

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Styling/SlateBrush.h

Include

#include "Styling/SlateBrush.h"

Syntax

UObject * GetResourceObject() const

Remarks

Gets the UObject that represents the brush resource, if any.

The object may be a UMaterialInterface or a UTexture.

Returns

The resource object, or nullptr if it is not set.