I am trying to spawn a widget from a class that derives from object, when I compile I get the message: “Pin World Context object must have a connection” however the create widget node has no such pin and I am unable to expand it like with other nodes.
Is there any way around this? If needs be I can rework part of my code but I’d like to avoid that if possible.
Hmm, never tried making a widget like that. Seems you can’t create a widget from the object base class. Looks like you need to reparent this BP to an actor class.
World Context Object is a hidden pin. It’s required for nodes, which do need a world to work, and evidently, Create Widget is one of these, meaning you can’t use it from any class, that provides no world (and UObject does not).
My workaround was constructing it as Object instead Widget, it will ask you for an outer, but you can create a function/event that receives any actor as parameter.