- Home /
How to find Unity's hidden shaders?
Hello everyone,
I'm trying to use the hidden shaders found in Unity like you might find on the tree creator. Specifically I need "Hidden/Nature/Tree Creator Leaves Fast Optimized" and "Hidden/Nature/Tree Creator Bark Fast Optimized".
I've been searching pretty extensively, but the only reference to the shaders I can find is this question from 2010: http://answers.unity3d.com/questions/37130/how-do-i-find-a-hidden-shader.html
And the link shared within is no longer valid. Does anyone know where else I can find the hidden shaders?
Answer by Brian@Artific · Jul 11, 2013 at 09:01 PM
The builtin_shaders_xxx.zip does not include all the hidden shaders.
New url: click (Click on the "Downloads" dropdown of the version you want and pick "built in shaders")
Answer by Xarbrough · Dec 18, 2015 at 07:21 PM
You were probably just looking for the source, but you can also use hidden shaders without copying their code to the assets folder like this:
var shader = Shader.Find("Hidden/Internal-Colored");
So you only need to lookup the names and then you can load them and set properties at runtime. I use this frequently when I know I only need that simple color shader and then turn off zWrite or change the blendmode via the SetInt() methods.