I am trying to render a preview panel like the default one in unity, it seems that the unity preview panel uses an inbuilt class to do it's rendering which is not exposed. What I am trying to do is render a mesh under the influence of 2 lights; but I don't want the mesh, or the lights to be part of the scene.
Does anyone have any ideas on how I could achieve this?
asked Jul 01 '10 at 10:46 PM
I don't believe there are any Editor classes that let you render scene views or objects in a separate window. I've just combed through this page:
and I don't see any reference to any custom rendering. I think the best you can do is attempt to write a C++ plugin for Unity (which requres Unity Pro) to try and render an object inside of an editor window, but I'm not sure if C++ plugins even work in the editor (I don't see any reason why they wouldn't, but who knows). That's probably the closest you're going to get to what you want.
answered Jul 02 '10 at 02:32 AM