is it possible to do a stepped slider ?

Hi,

[edit] in fact the title is wrong it should be “is there a stepped slider ?” 'cause everything is possible with unity :smile:

I would like to do a “stepped” slider so wich move from a value to another without having the possibility of staying in between.

Is there a way in the Unity api ?

otherwise I thinked to use a sort of

if ( number > 1 number =< 1.5)
number = 1;
else if number >1.5 number =< 2)
number = 2;
etc…

But it seems like a lot of lines for something really simple…

Any ideas are welcome

Cheers

BooBi

Just use an integer.

–Eric

-_-’ nice one

it’s coffee time…