Quantcast
Channel: Latest Questions by Shiro_Rin
Viewing all articles
Browse latest Browse all 50

Slider.value won't change to INT

$
0
0
void Update () { slider.wholeNumbers = true; } public void Test(){ WeaponsIndex = slider.value; } This is where my problem is residing in my code. I'm getting a Cannot implicitly convert type `float' to `int'. An explicit conversion exists (are you missing a cast?) No matter what I do. I figured changes in the code in update that whole numbers would be true would solve it however slider.value is still a float instead of int.

Viewing all articles
Browse latest Browse all 50

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>