Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Radial Slider (Circle Slider)

Discussion in 'UGUI & TextMesh Pro' started by rezilausiv, May 17, 2015.

  1. rezilausiv

    rezilausiv

    Joined:
    Nov 18, 2010
    Posts:
    126
    The new Unity UI is a great step forward indeed.
    But it lacks radial sliders (something like those here: http://anthonyterrien.com/knob/)

    Can you tell us here, if Unity brings this in a further release?
     
    QashiCheema likes this.
  2. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    +1
     
    QashiCheema likes this.
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,000
  4. rezilausiv

    rezilausiv

    Joined:
    Nov 18, 2010
    Posts:
    126
    Looks quite good. Do you spend us (the community) the code of this example?

    What I intend to do is this (look the design of the picture)
    There is a part of a radial slider and a on/off switcher and a 2D "positioner" to move parts of the object in the scene.

    Is this feasible with the new GUI on a way?
     

    Attached Files:

    QashiCheema likes this.
  5. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,000
    QashiCheema and ben_page like this.
  6. rezilausiv

    rezilausiv

    Joined:
    Nov 18, 2010
    Posts:
    126
    MANY THANKS! This is a good way to start. Now I will find out how it can be done that the value change only if the mouse pointer is within the white ring. May be with a "blinde" circle in front of the radial slider.
     
    QashiCheema likes this.
  7. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,000
    Yes, that should work, or taking mouse distance to center (but then maybe have to give value for area inner radius)
     
  8. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,685
    Looks like a fantastic start @mgear You ok with adding this to the UI Extensions project? (link below)
     
  9. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,000
    yes go ahead, thanks!
     
  10. 8bitCartridge

    8bitCartridge

    Joined:
    Feb 26, 2014
    Posts:
    144
    @mgear @SimonDarksideJ @Ippokratis

    Hey guys, I have made my own little script for a Radial Slider(s) which are also connected together (total values of all cannot go over 100%), do you think people would have use for it? On the Asset Store perhaps? Check out the video:
     
  11. Kabendji

    Kabendji

    Joined:
    Feb 9, 2013
    Posts:
    24
    @mgear Hello, Thanks for your slider, I'm using it as a Radial Slider to move a RadialLayout.

    I just wanted to know if there is a way to add a inertia movement at then end ?

    Thanks you ;)
     
  12. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,685
    Looks interesting @8bitCartridge do you also want to submit that to the #UIExtensions project and use the asset store link for donations? (a few have done that)
    Up to you, but you'd be welcome :D
     
  13. MiraiTunga

    MiraiTunga

    Joined:
    Nov 25, 2012
    Posts:
    8
    Is this on the asset store yet ?
     
  14. MattDiamond

    MattDiamond

    Joined:
    Jul 4, 2017
    Posts:
    3
    @8bitCartridge I think it will be a really good idea to see that on the asset store. Free, if posssible
     
  15. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,685
    Adding this to the upcoming UI Extensions release, should be available soon. Time permitting :D
     
  16. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,685
    Any update on your plans @8bitCartridge ? Almost at the end of this update cycle for the UI Extensions.