|
What I'm looking for is something similar to the "Render Paths" view in Unity's scene view, only with my own color-coding: The ability to give certain objects a custom color overlay in the scene view. It would be great to use as visual feedback for level design tools. Any idea if Unity provides such a feature or how I could achieve something similar without changing every object's material?
Thanks!
(comments are locked)
|
|
The closest thing you can get is to use Gizmos. See DrawGizmo. OK, DrwaGizmo seems to be a good place to put such an effect. How would you suggest I color the objects though? Just tried to render a copy of every object in front of the actual object and give the copy a flat, transparent color, but that doesn't seem to be very practical (For one, they are visible in the game cameras. Editing the scene and keeping track of the debug objects is also tough). Adding materials to every object's materials array has the same problems and I haven't found a "ColorObject" Gizmo yet..
Jul 05 '11 at 09:51 AM
VivienS
(comments are locked)
|
|
If you want to draw some kind of overlay you could render the scene again with Camera.RenderWithShader. Take a look at the Replacement Shaders. If you want to render the scene completely with your custom shader you should be able to use Camera.SetReplacementShader on the scene camera. To disable your render mode use Camera.ResetReplacementShader
(comments are locked)
|

