Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Use Slider to change Object Colour

$
0
0
Hi Folks, just starting into the Unity UI.

I'm making a small project to help learn.

At the moment, I have various objects that I am using a slider to cause effect upon. So for instance I am changing the force, rotating objects, etc.

I'm wondering about using a slider to change the objects colour. How do I access the colour of an object...material?

My approach has been to create functions in a script, then use the inspector to assign functions to the slider.

Any thoughts appreciated.

2h.

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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