- Home /
How to apply shaders on many surfaces quickly? Please help.
hello. I imported a model from sketchup. it´s a bigger project, so there are lots of different groups and meshes. i´d like to apply toon shader on all of them but i dont wanna click every cube and every wall and do it like that there must som speedup method. please help. Thanks
Answer by Graham-Dunnett · May 06, 2012 at 08:18 PM
Sounds like a task for the AssetPostProcessor:
http://unity3d.com/support/documentation/ScriptReference/AssetPostprocessor.OnPostprocessModel.html
Then get the renderer, it's list of materials, and set shaders for them.
Your answer
Follow this Question
Related Questions
See colors when inside Cube - Worldbuilding in a gameobject 2 Answers
When I create a cube it is SUPER small. Please Help! 1 Answer
Spawning won't work 1 Answer
Unity 3D C# - Gameobject Minecraft Like Placing 0 Answers
Looking for CheckCube 1 Answer