I know my way may not be the best but its what I figured out so far. So my goal here is to select a projectile create a specific widget with an ammo count and a specific look for the projectile im using. But when i switch between projectiles it resets the ammo count which i dont want. So i know my problem is i cant recreate the widget every time i press the button…so how can i create the widget and just set it to be invisible till the button is pressed. Hopefully that makes sense…thank you
when i switch between projectiles it resets the ammo count
why not store the ammo count in your character then just have a reference to the character in the widget.
also you could just set the visibility of the widget to hidden.
You gotta store those variables in your player. storing in player only keeps those for the current game. if you want to make the ammo amount be saved and reloaded every time you launch your game then you can look in to Save Game tutorials on youtube.