I want to create a " pie-graph " type progress GUI element but I’m struggling to achieve it.
I have myInt ticking over +=1 every second, I want to demonstrate myInt out of maxMyInt which is 30.
I want to create a " pie-graph " type progress GUI element but I’m struggling to achieve it.
I have myInt ticking over +=1 every second, I want to demonstrate myInt out of maxMyInt which is 30.
This has been asked many times already. Search for “circular progress” or “circular health”.
If you just want +1 every second only, then use a function like:
function raise() {
while(myInt<=maxMyInt)
{myInt++;
yield WaitForSeconds(1);}}
And call that function whenever you need, you can use FixedUpdate too but I advise this one with my intermediate knowledge. Hope this helps if I understood you right.