Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Blueprint/UserWidgetPool.h |
Include |
#include "Blueprint/UserWidgetPool.h" |
template<typename UserWidgetT>
UserWidgetT * GetOrCreateInstance
(
TSubclassOf< UserWidgetT > WidgetClass
)
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.