I'm trying to get a widget to remove from parent or something...

I’m following Ryan Layley’s first equipment system, the one that even he says is terrible, and yet I do see that some things could be valuable so I watch.

In episode 3 he spawns a widget that when clicked anywhere else is supposed to remoev from parent. Ive tried to debug with print strings and the code seems to fire through and say hello, yet the widget remains. I’ve looked into widget focus and that doesnt seem like its it…

I would like the issue fixed because I could see it being useful to be able to pop up and hide other widgets

There’s only two reasons why a widget won’t remove from the parent:

  1. You don’t have a valid reference to the widget. If that’s the case, you’ll get errors about references to ‘none’ when you stop playing.

  2. You have created multiple copies of the widget. In this case, it will appear to not remove, even when it is.

1 Like