Good day.
I believe that I have found a bug that I would like to report. Here are the steps to reproduce my issue:
-
Create a new Widget Blueprint. Close the blueprint.
-
Create a new blueprint class and derive it from Object.
-
In its Event Graph, create a new Custom Event (eg MyEvent).
-
Drag off the execute pin and add a Create Widget node. Select your widget from the list.
This produces warnings that using ‘Create Widget’ is unsafe to use from blueprints derived from Object. This is understandable and I agree, but it should be only a warning.
It also creates an error though, saying ‘World Context Object’ should have a value.
I do understand that, since my blueprint is derived from Object, there might be a dependency to a world / context object that ‘Create Widget’ can not find, because Object has no knowledge of any world context. But there seems to be no way for me, ie. no pin, to set this world context object. For example, to do this I might add a local variable to the blueprint, and when my level starts, I might get the instance of my Object-derived blueprint and set this variable, and I would then expect Create Widget node to work, because in my custom event I would use this variable as the world context object.
Cheers,
Marius Myburg.