UnityEditor.ProceduralTextureInspector.OnPreviewGUI C# (CSharp) Method

OnPreviewGUI() public method

public OnPreviewGUI ( Rect r, GUIStyle background ) : void
r UnityEngine.Rect
background UnityEngine.GUIStyle
return void
        public override void OnPreviewGUI(Rect r, GUIStyle background)
        {
            base.OnPreviewGUI(r, background);
            if (base.target != null)
            {
                ProceduralMaterial proceduralMaterial = (base.target as ProceduralTexture).GetProceduralMaterial();
                if (((proceduralMaterial != null) && ProceduralMaterialInspector.ShowIsGenerating(proceduralMaterial)) && (r.width > 50f))
                {
                    EditorGUI.DropShadowLabel(new Rect(r.x, r.y, r.width, 20f), "Generating...");
                }
            }
        }
    }