How to draw a model in the preview window of my custom editor using OnPreviewGUI?
I made a custom editor for my scriptable object that has an animation clip that I would like to preview. I can get a preview window to show up by overriding hasonpreviewgui but I cannot seem to draw a model, only textures. How do I draw a model to preview an animation clip similar to what happens when editing FBXs
This is what I have overridden so far, which is basically the bare minimum
public override bool HasPreviewGUI()
{
return true;
}
public override void OnPreviewGUI(Rect r, GUIStyle background)
{
base.OnPreviewGUI(r, background);
}
Comment