Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Slate > API/Runtime/Engine/Slate/FSlateGameResources
- ISlateStyle::GetOptionalBrush()
- FSlateStyleSet::GetOptionalBrush()
- FSlateGameResources::GetOptionalBrush()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Slate/SlateGameResources.h |
| Include | #include "Slate/SlateGameResources.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Slate/SlateGameResources.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 |