- Home /
How to Create Material Preview in Custom Editor
Hi guys, recently I have a script that progammatically create a new Material for Unity, but I have a question, how I preview my material to be previewed right inside the Inspector?
For example see when editing materials, this component previews the material that currently selected.

I know that i have something to do with OnPreviewGUI but I didn't know where to start.
 
                 
                untitled.png 
                (31.7 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                