FSlateRenderer::GetResourceHandle

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.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/SlateRenderer.h

Include

#include "Rendering/SlateRenderer.h"

Syntax

FSlateResourceHandle GetResourceHandle
(
    const FSlateBrush & Brush
)

Remarks

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

Returns

The created resource handle.

Parameters

Parameter

Description

Brush

The brush to get a rendering resource handle

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