Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Spawning a Widget from an Object Class

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.


Product Version: UE 4.21
more ▼

asked Apr 04 '19 at 01:04 PM in Blueprint Scripting

avatar image

34 6 12 16

avatar image Nebula Games Inc Apr 04 '19 at 02:52 PM

Screen shot?

avatar image MeGaJ0eY Apr 04 '19 at 02:55 PM

alt text

Here it's this node causing the problem, error message is at the bottom.

screenshot005.jpg (202.8 kB)
avatar image Nebula Games Inc Apr 04 '19 at 03:26 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Apr 04 '19 at 04:09 PM

avatar image

1.4k 5 5 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question