- Home /
Question by
Caiuse · Jun 14, 2011 at 07:22 AM ·
guiprogress-barcircular
GUI Progress ?
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.
Comment
Best Answer
Answer by Bampf · Jun 14, 2011 at 10:50 AM
This has been asked many times already. Search for "circular progress" or "circular health".
Answer by byerdelen · Jun 14, 2011 at 10:38 AM
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.