Quantcast
Channel: Questions in topic: "playerprefs"
Viewing all articles
Browse latest Browse all 1333

Noob to Shaders - How to check for PlayerPref

$
0
0
Ok so as you can tell from the title, I don't exactly know much about shaders and how they work, I really only use ones by others and modify the settings. In my example, I have a setting on a shader called 'Shine' which to my understanding is a Float: _ShineAmount ("Shine Amount", Float) = 30 In my js code, I have a PlayerPref being a float called 'SparkleAmount' which is tweaked by a slider I have put together. How would I go about on the shader making it change the 'Shine Amount' value based on PlayerPrefs.GetFloat("SparkleAmount");? Thanks!

Viewing all articles
Browse latest Browse all 1333

Trending Articles



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