If you want to change a color-value in a material’s shader you can use Material.SetColor(“_PropertyName”, Color.white); If you don’t know what that color value is called in the shader, get the the source of all the shaders in Unity here and have a look inside. This page in the docs might help as well…
-
About col000r
Markus Hofer
Indie Game Developer
Austria, Europe -
RECENT POSTS
- Moving
- Moving Oculus Home
- The dark side of VR
- The cloud
- Host a TNet server on Amazon EC2
- Tales from the Museum of Unnecessary Purchases: Komplete 9 on OS X 10.6.8
- A Rant: Software updates. What will they screw up this time?
- Unity: Log AnimationCurves
- Unity: Creating an Installer
- Making InControl work with NGUI
- Additive Shader
- Unity: Building for Android
- Kickstarter
- Unity: Marking classes or functions as Obsolete
-
Why the Unity subscription model isn’t good for
anyonemost people