UnityEditor.ShaderGUI.OnMaterialPreviewGUI C# (CSharp) Method

OnMaterialPreviewGUI() public method

Override for extending the rendering of the Preview area or completly replace the preview (by not calling base.OnMaterialPreviewGUI).

public OnMaterialPreviewGUI ( MaterialEditor materialEditor, Rect r, GUIStyle background ) : void
materialEditor MaterialEditor The MaterialEditor that are calling this method (the 'owner').
r UnityEngine.Rect Preview rect.
background UnityEngine.GUIStyle Style for the background.
return void
        public virtual void OnMaterialPreviewGUI(MaterialEditor materialEditor, Rect r, GUIStyle background)
        {
            materialEditor.DefaultPreviewGUI(r, background);
        }