May
17
2015

Radial Slider UI Test

unity_radial_ui_slider

Quick test for radial UI slider, with color lerp & value display.

TODO:
– Allow starting from any angle (now 0 is at left middle)
– Options: Value display on/off, Color lerp on/off
– And other features from : http://anthonyterrien.com/knob/

WebGL player:
http://unitycoder.com/upload/demos/RadialSliderUI/

Sources:
radialsliderUI.unitypackage (*Unity 5.0.1f1)

How to:
– Track mouse position over image when mousebutton is down
– Get angle from center
– Adjust image fill amount (with fill method: Radial360)

References:
– Related forum topic: http://forum.unity3d.com/threads/radial-slider-circle-slider.326392/
– Getting mouse position over UI component: http://forum.unity3d.com/threads/eventtrigger-move-issue.325103/#post-2114563


4 Comments + Add Comment

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.