Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/FSlateRenderer
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FSlateResourceHandle GetResourceHandle
(
const FSlateBrush& Brush |
Creates a handle to a Slate resource A handle is used as fast path for looking up a rendering resource for a given brush when adding Slate draw elements This can be cached and stored safely in code. | Rendering/SlateRenderer.h | |
FSlateResourceHandle GetResourceHandle
(
const FSlateBrush& Brush, |
Rendering/SlateRenderer.h |
GetResourceHandle(const FSlateBrush &)
Description
Creates a handle to a Slate resource A handle is used as fast path for looking up a rendering resource for a given brush when adding Slate draw elements This can be cached and stored safely in code. It will become invalid when a resource is destroyed It is expensive to create a resource so do not do it in time sensitive areas
| Name | GetResourceHandle |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Rendering/SlateRenderer.h |
| Include Path | #include "Rendering/SlateRenderer.h" |
virtual FSlateResourceHandle GetResourceHandle
(
const FSlateBrush & Brush
)
The created resource handle.
Parameters
| Name | Remarks |
|---|---|
| Brush | The brush to get a rendering resource handle |
GetResourceHandle(const FSlateBrush &, FVector2f, float)
| Name | GetResourceHandle |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Rendering/SlateRenderer.h |
| Include Path | #include "Rendering/SlateRenderer.h" |
FSlateResourceHandle GetResourceHandle
(
const FSlateBrush & Brush,
FVector2f LocalSize,
float DrawScale
)