ISlateStyle::GetOptionalBrush

Just like GetBrush, but returns DefaultBrush instead of the "missing brush" image when the resource is not found.

Windows
MacOS
Linux

Override Hierarchy

References

Module

SlateCore

Header

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

Include

#include "Styling/ISlateStyle.h"

Syntax

const FSlateBrush * GetOptionalBrush
(
    const FName PropertyName,
    const ANSICHAR * Specifier,
    const FSlateBrush *const DefaultBrush
) const

Remarks

Just like GetBrush, but returns DefaultBrush instead of the "missing brush" image when the resource is not found.

Returns

an FSlateBrush property.

Parameters

Parameter

Description

PropertyName

Name of the property to get

Specifier

An optional string to append to the property name

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