- Home /
 
How would I get a model to show in the preview window in the inspector when its in a GameObject?
What I want to do is something like this 
With the gun showing in the preview window but a different model. This is part of a prefab but there isn't a separate object for the gun it just shows up in the preview window.
 
                 
                screenShot 5.png 
                (30.4 kB) 
               
 
              
               Comment
              
 
               
              Answer by jasonlu00 · Jul 15, 2015 at 07:17 PM
Check out "HasPreviewGUI, OnPreviewGUI and OnPreviewSettings" Docs: http://docs.unity3d.com/ScriptReference/Editor.OnPreviewGUI.html http://docs.unity3d.com/ScriptReference/Editor.OnInteractivePreviewGUI.html
Answer by conceptfac · Aug 04, 2020 at 12:33 AM
This way only shows inside scene objects, how to preview a prefab?
Your answer