- Home /
Creating a circular slider
Hi all,
First off: I'm very new to Unity, so please bear with me ;-)
I'm currently working on a 2D game where I need a circular slider like this:
Where "6" is the age of the user. The sliders minimum value is 3 and the maximum value is 12.
I've searched high 'n low for an example on circular sliders, but unfortunately found very little.
Also, I've been trying to make the regular slider UI component work by setting the fill to Radial360, but that feels more useful for "pie"/progress circular bars?
Does anyone know of a way to do this? Any advice, hints and/or help is greatly appreciated. Just to get myself started the right way - or if I've missed anything completely obvious ;-)
Thanks a lot in advance.
I'm not going to go indepth here, but if no one finds a great solution for you then i would familiarize myself with some geometry equations to lock the slider to the radius of the circle, and calculate an output value based on it's position and a reference vector like one pointing from the center of the circle to the top. The Handles class has some circular drawing tools.
Your answer
Follow this Question
Related Questions
How can I load post processing profile throught a script ? 0 Answers
bolt errors 1 Answer
How to make 2D grass platforms? 1 Answer
Box boundary 2D Unity3D 4.3 2 Answers