Search Unity

Switch Control for 4.6

Discussion in 'UGUI & TextMesh Pro' started by tarahugger, Sep 2, 2014.

  1. tarahugger

    tarahugger

    Joined:
    Jul 18, 2014
    Posts:
    129
    I put together a switch control and thought i would share it with you lovely people.





    Switch.unitypackage (4.4mb)
    http://www.filedropper.com/switch
    http://www.datafilehost.com/d/c8c2c083


    4.6 Feedback

    • Clicks on buttons inside a toggle won't trigger the toggle, only images. seems like any child should trigger the parent toggle.
    • A Toggle.Toggle() method would be nice. then you can just call it from OnClick in the inspector and not have to check the current value.
    • I ended up having to animate Anchor Min/Max, maybe there's a way with position/anchored position to move a localized distance that doesn't break when the parent control is re-sized (changing the distance needs to be traveled), but i couldn't figure it out.
    • I would love the new events function drop-down to include extension methods (then i could just add Toggle() to Toggle) :D
     
    Tim-C likes this.