- Home /
Creating a Circle Loader
So currently I am working with a redical, and I'm looking to make it so when the redical is over an object it starts to draw an out circle around it to indicate the amount of time you have to look at the object. Currently this is being displayed and happening with a timer, and I don't do to much ui work so am I trying to find out how you would do something like this..
Currently I am doing the timer through the ui like so
//Draw Time
if (spied == true) {
GUI.Box (new Rect (Screen.width / 2, Screen.height / 2, 100, 50), (elapsedTime.ToString ()));
} else {
spied = false;
}
Answer by Hexer · Aug 03, 2015 at 03:45 PM
In the UI.image you have to set the Image type to filled. Then set the radius to 360*. If you change the fill amount in script you can then adjust the (in this picture) green loading bar.
You can set the fill amount to 1 and decrease it each time. When you reach fill amount == 0,time is up.
I kinda get where your going with it but how did you add that circle image to source images and get the light green to be around it. currently I just have this huge green circle
Your answer
Follow this Question
Related Questions
Drawing a sprite box and then displaying text over it 0 Answers
UI Text to Display Loading Progress of Songs in Music Folder 1 Answer
UI Button multiple parameters 6 Answers
How to change Normal color, Highlighted color etc. in 4.6 buttons with code 2 Answers
unity scrollview doesnt bounce 0 Answers