I was wondering what is the best way to make a new widget.
Say we are making an RTS game, and we have our building which is an actor. Once clicked, we would want to show a HUD for it. Let’s say we already have the selection functionality.
What is the best way to create that widget for it? make it as a new component in the component area, or once BeginPlay initiate, create a new widget of the desigred class and promote it to a variable?
Keep in mind: the HUD should appear on the screen, and not on the building (thus would be unreachable if the camera is not looking at it).