- Home /
How can I use the Mesh Inspector preview in an Editor Window?
I have built a tool to allow our artists to search for Mesh assets by complexity. This is so they can quickly find assess and correct models in the project. I have also written an "Auto Mesh Simplify" function that I would like to show a preview of before applying the changes to the Mesh asset.
I can not find any documentation on how Unity renders the preview of the mesh in the Mesh Inspector. I have messed with the PreviewRenderUtility with which I can ultimately generate a 2d image of a specific angle of the model. This works for some objects and not for others as the zoom and framing of the models is largely depending on size. Another caveat of this method is that it doesn't allow for manipulation of the view. It is also missing the Mesh statistical information.
I have thought I could use the GUI loop to add controls to the images and update the image every frame. This seems like a poor solution to what should be an easy implementation of an existing Editor system.
Thanks for reading my post, any help is appreciated.