Is it possible to limit slider value?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jala015

Hi everyone!
I have a simulator with a slider that ranges from 0 to 1. However, the slider should be limited to max 0.4 until the player pushes another button. Is there a way to create this limit with the slider node? The only solution that I thought was coding a custom slider by myself.

I’m not sure with the Editor but you should be able to do it in script with


and get back to 1 when the player clicks the button ?

Anate | 2023-02-07 18:06

perfect! That’s just what I was looking for… Thank you!

jala015 | 2023-02-07 18:21

my pleasure, good luck with your project (: !

Anate | 2023-02-07 18:22

:bust_in_silhouette: Reply From: zhyrin

If you have your slider node selected, you can change the max value in the inspector under the Range section.