I have set up a custom menu (with source: Unity UI in scene) that consists of a UI slider I'm using as a countdown timer. The player has 20 seconds to perform an action. I have a global float variable set to an initial value of 20. When I enable the menu, an actionlist starts that decrements the variable by 1 every second, then plays a player dialogue when time runs out (and resets the global variable to 20). That all works fine.
My issue is the slider bar itself. No matter what settings I change, its max value always seems to start at 1. Its value will decrement from 1 to 0 (I can see this in the slider bar itself and in the decreasing numbers in the inspector), but it will never have the values of 2-20, even though the variable it's linked to is counting down properly. Am I missing something simple here?
Comments
I did find someone else with the same issue when I did a search. The posts are closer to the end of this thread.