Hi,
I’ve been wondering if it’s possible to make a circular slider.
I would like to make a clock-like slider with wich i could change a variable (e.g. time of day in UniSky).
Hi,
I’ve been wondering if it’s possible to make a circular slider.
I would like to make a clock-like slider with wich i could change a variable (e.g. time of day in UniSky).
Try this:
Create slider in Canvas then go to the fillArea and set the image type to Radial360 that’ll work for you.
Ehm… I’m not an expert on programming at all… But I’m experimenting here and there. I don’t know about the slider, but if I’d make a clock. I would set the rotation of the pointer on the clock to the variable. Which isn’t that hard. Simple math really.
Not natively (maybe in the asset store though, check it out.)
I suggest you create your circle in 2D app, the thumb as well, the use RotateAroundPivot to move the thumb along the circle, the angle being given by the two vectors [CircleCenter, mousPose], [CircleCenter, right], and the pivot the circle center.