- Home /
4.6 UI "Slider" jumps on handle press?
Note - in fact this has been fixed Nov19 per Runevision @ Unity
http://forum.unity3d.com/threads/slider-is-broken-cant-grab.280585/
they say the fix should appear in a patch
The slider handles do not work - if you "grab" them, they jump to that spot.
Answer by fafase · Nov 17, 2014 at 09:03 AM
It seems to be the default behaviour as long as your slider is interactable. I guess this is because the interactable is on the slider so the whole box is acting.
If you untick this on the slider component, then it won't jump. But it won't do anything anymore either...
Then it seems to be up to you to create a script where you will perform the movement yourself, using IBeginDragHandler, IDragHandler. But then you also need to update all of the information of slider bar and values and so on...
You may be better off creating your won slider. Also, using the new UI and you cannot publish anymore. I got that issue lately when using the uGUI and then anyone playing the game on a computer with no Unity would see blank GUI items.
Web player support has been intermittent on the beta. The other platforms publish fine.
You may be able to block or invalidate the click if it falls inside the handle rect. Should be easy enough to do.
Isn't all platforms including a watermark saying "Built with Beta"? I think Standalone does, not sure about mobile.
Web player has the watermark. I wouldn't $$anonymous$$d it so much if it was a proper logo and didn't look so tacky. Still, they are calling updates 'release candidates' now, and 5 is in beta. So it can't be too far off actual release.
Answer by Scribe · Nov 17, 2014 at 10:41 AM
Mine works exactly as you have suggested it should by default :o I've uploaded a little test build for windows (.exe) here if you would like to test it, I'm not sure what is causing the difference though, I have the older 4.6 I believe as opposed to the 5 beta if that is it?
Hi Scribe, thanks! I'm using 4.6.0f2. You? Perhaps you could just post the unity project??
https://www.dropbox.com/s/pnifzbjvy46c73v/sliderTest.unitypackage?dl=0 Hopefully that works for you!
I think my version must be earlier as when I went to download the beta again just now the version downloaded is 4.6.0f2, which is strange if they have 'fixed' it to be wrong haha! I got it from the main 4.6 beta unity site, I could zip my program file up but I'm not sure if that would be legal or helpful if the final release is going to have different functionality! :S