I have a counter that increases when a condition is met. However, instead of the next number replacing the previous, it layers on top of it. How do I get the counter to only show the current number?
It is possible you created more then one widget.
I had a separate widget for the combo counter and the reticle. I combined them into one widget and the glitch still occurs.
Show the code where you create the widget. In which blueprint, which event.
I have a blueprint for my targets (its a first person shooter) where I create the widget
What follows is code for a countdown which works as intended.
Stick a print string On Construct inside the widget you create (Widgetcounter Widget), easy way to see if you’re creating more then one widget.
You create as many widgets as you have targets. If you have three targets, three widgets will be created.
Tried this and it is creating a widget for every target. Is there a way to fix this?
Yes, create only one.
Maybe in your character since it’s easy to access it. Create it at start of the game or whenever you need too and make a function that will increment a number and assign a number to the widget, when condition is met.