- Home /
applying toon shading to all 3d meshes at once
If I import a 3d object with a hundred or so meshes I have to drag toon shading on all the parts individually, is there some way to apply it to everything in the folder or prefab at once?
Answer by Tetrad · Jun 12, 2010 at 05:42 AM
It should be relatively easy to write an editor script that does an AddComponent for every game object for a selected object by recursively iterating over its transforms. Doing a quick search led me to this forum post which should be a decent starting point. http://forum.unity3d.com/viewtopic.php?p=231868
If you write one that works, post it and let us see how it worked out.
Your answer
Follow this Question
Related Questions
Can you run custom code when changing scene perspective? 1 Answer
How to change a selection effect in editor 0 Answers
Save/Attach content of editorWindow to a gameObject 1 Answer
Creating a toolbar with toggleable buttons 2 Answers
Create inspector drop-down button based on the content of a list in editor mode 1 Answer