FUserWidgetPool::GetOrCreateInstance

Gets an instance of the widget this factory is for with a custom underlying [SObjectWidget](API\Runtime\UMG\Slate\SObjectWidget) type

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/UserWidgetPool.h

Include

#include "Blueprint/UserWidgetPool.h"

Syntax

template<typename UserWidgetT>
UserWidgetT * GetOrCreateInstance
(
    TSubclassOf< UserWidgetT > WidgetClass,
    WidgetConstructFunc ConstructWidgetFunc
)

Remarks

Gets an instance of the widget this factory is for with a custom underlying SObjectWidget type

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