Ask Your Question
4

What is the method to deactivate animation while sliding a Slider?

asked 2023-05-20 16:05:27 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-20 16:18:01 +0000

woof gravatar image

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.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-20 16:05:27 +0000

Seen: 12 times

Last updated: May 20 '23