Blueprint derived from Object with Create Widget node does not compile

Good day.

I believe that I have found a bug that I would like to report. Here are the steps to reproduce my issue:

  1. Create a new Widget Blueprint. Close the blueprint.

  2. Create a new blueprint class and derive it from Object.

  3. In its Event Graph, create a new Custom Event (eg MyEvent).

  4. 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.

Hello ,

I was able to reproduce what you are seeing on your end. However, after looking into the issue I believe that this is working as intended. The create widget node needs a reference to a world context object in order to function correctly. Thank you for your time and information.

Make it a great day