Widget Performance Question

So i’m making a UI and i was just wondering which of these methods are the best performance-wise.
This is for a top-down diablo-like system with lots of chests to open or other things you might need to open.

  1. Having all the widgets on the HUD, but hiding the ones that you don’t need.
  2. Dynamicly creating them when you need them, then removing them from viewport and letting GC do it’s thing. (I’m not even sure exactly how GC handles widgets, do i just remove them from viewport and remove all references to it?)
  3. Using the Widget component on the actor itself and hiding/showing accordingly.
  4. Creating them ONLY if they don’t exist, then from that point on hiding and showing them.

What would be the best choice performance-wise, where you might need to frequently open and close widgets? Specially for things like the player’s inventory or their stats, etc.

Great!
That’s how i was setting it up already so this is good news to me.
I just wanted to make sure i am not going to run myself into a wall down the line.

Thanks.

(1) is likely the most performant.

(3) is likely the worst performant.

I’m sure you could get (2) or (4) to work not much worse (performance-wise) than (1), but they are also likely going to be much more difficult to get placed correctly.