I am using the Unity Slider component. I have a custom background and custom knob. But whenever I move the slider, my knob's size becomes distorted. It is 100x100 pixels, and when I set it to its native size, it does so. But I soon as I move the slider, it cuts its height in half. How can I prevent this from happening?
3 ways. 1) should work for all cases.
1) Parent the handle object to some empty and assign this object slider handle rect. Also, change the Anchor Preset to not stretched in
Handle object. Thus slider will change Anchor Preset of
Handle has no stretched, so it will not be changed.
2) There is a Preserve Aspect toggle in Image component, this may not work for you if you want your handle image to be another aspect.
3) Try scaling it in Scale, not changing its width or height.