Model preview in editor window

Hey

I’m working on an editor extension and I need to render a preview of up to several models to an editor window (preferably with the ability to rotate and zoom as well). I’ve found AssetPreview.GetAssetPreview but it only renders the model to a 128x128 texture, which is way to low res for what I need and doesn’t offer zoom.

Using a hidden camera and only rendering a specific layer would work, but I’d rather like to avoid it, since it robs the user of a layer.

I was then considering using Graphics.DrawMeshNow as part of a camera’s post process hook (with the camera not rendering anything), but then I won’t get any lighting on my models.

Does anyone have a fourth suggestion that might work?

Cheers
/asger

Hi papabooish, I’ve just finished my own preview asset, maybe it will be useful for you: Powerful Preview - Extend your assets with a preview. - Community Showcases - Unity Discussions