Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Styling > API/Runtime/SlateCore/Styling/FSlateStyleSet
- ISlateStyle::GetOptionalBrush()
- FSlateStyleSet::GetOptionalBrush()
- FSlateGameResources::GetOptionalBrush()
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Styling/SlateStyle.h |
| Include | #include "Styling/SlateStyle.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Styling/SlateStyleSet.cpp |
virtual const FSlateBrush &42; GetOptionalBrush
&40;
const FName PropertyName,
const ANSICHAR &42; Specifier,
const FSlateBrush &42;const DefaultBrush
&41; const
Remarks
Just like GetBrush, but returns DefaultBrush instead of the "missing brush" image when the resource is not found. an FSlateBrush property.
Parameters
| Name | Description |
|---|---|
| PropertyName | Name of the property to get |
| Specifier | An optional string to append to the property name |