Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint > API/Runtime/UMG/Blueprint/FUserWidgetPool > API/Runtime/UMG/Blueprint/FUserWidgetPool/GetOrCreateInstance
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidgetPool.h |
| Include | #include "Blueprint/UserWidgetPool.h" |
template<typename UserWidgetT>
UserWidgetT &42; GetOrCreateInstance
&40;
TSubclassOf< UserWidgetT > WidgetClass
&41;
Remarks
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.