Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Assuming you are referring to a UI Slider in a Unity scene, you can disable the animation of the slider by setting the "Whole Numbers" property of the slider component to true.

Here are the steps to do so:

  1. Select the Slider object in your scene.
  2. In the Inspector window, look for the "Slider (Script)" component.
  3. Find the "Whole Numbers" property and toggle it on.
  4. This should disable the animation when the slider value is changed, and snap the value to the nearest integer.