Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/FUserWidgetPool
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UserWidgetT * GetOrCreateInstance
(
TSubclassOf< UserWidgetT > WidgetClass |
Gets an instance of a widget of the given class. | Blueprint/UserWidgetPool.h | |
UserWidgetT * GetOrCreateInstance
(
TSubclassOf< UserWidgetT > WidgetClass, |
Gets an instance of the widget this factory is for with a custom underlying SObjectWidget type | Blueprint/UserWidgetPool.h |
GetOrCreateInstance(TSubclassOf< UserWidgetT >)
Description
Gets an instance of a widget of the given class. The underlying slate is stored automatically as well, so the returned widget is fully constructed and GetCachedWidget will return a valid SWidget.
| Name | GetOrCreateInstance |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidgetPool.h |
| Include Path | #include "Blueprint/UserWidgetPool.h" |
template<typename UserWidgetT>
UserWidgetT * GetOrCreateInstance
(
TSubclassOf < UserWidgetT > WidgetClass
)
GetOrCreateInstance(TSubclassOf< UserWidgetT >, WidgetConstructFunc)
Description
Gets an instance of the widget this factory is for with a custom underlying SObjectWidget type
| Name | GetOrCreateInstance |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidgetPool.h |
| Include Path | #include "Blueprint/UserWidgetPool.h" |
template<typename UserWidgetT>
UserWidgetT * GetOrCreateInstance
(
TSubclassOf < UserWidgetT > WidgetClass,
WidgetConstructFunc ConstructWidgetFunc
)