i am having some troubles to use the Node “Create Widget” within my custom UManagerClass Blueprint (aka UI Manager). It derives from UObject
and is instantiated in my custom GameInstance Class.
He always tells me this:
" Warning Function ’ Create Widget ’ is unsafe to call from blueprints of class ’ UserInterfaceManager '."
" Error Pin World Context Object must have a connection"
I have the following includes i thought i would need but the problem still perists:
#include "UserWidget.h" #include "Runtime/UMG/Public/UMG.h" #include "SlateBasics.h" #include "../UI/MyUserWidget.h" #include "UserInterfaceManager.generated.h"
Someone knows what i am missing?
when i call CreateWidget within c++ of the parent class its all fine. But this would need me to create a new Function which is able to return my custom
Widgets i dont think this would be needed, since “CreateWidget” already do everything i need.