DefaultPreviewGUI() public method

public DefaultPreviewGUI ( Rect r, GUIStyle background ) : void
r UnityEngine.Rect
background UnityEngine.GUIStyle
return void
示例#1
0
 /// <summary>
 /// <para>Override for extending the rendering of the Preview area or completly replace the preview (by not calling base.OnMaterialPreviewGUI).</para>
 /// </summary>
 /// <param name="materialEditor">The MaterialEditor that are calling this method (the 'owner').</param>
 /// <param name="r">Preview rect.</param>
 /// <param name="background">Style for the background.</param>
 public virtual void OnMaterialPreviewGUI(MaterialEditor materialEditor, Rect r, GUIStyle background)
 {
     materialEditor.DefaultPreviewGUI(r, background);
 }
示例#2
0
 /// <summary>
 /// <para>Override for extending the rendering of the Preview area or completly replace the preview (by not calling base.OnMaterialPreviewGUI).</para>
 /// </summary>
 /// <param name="materialEditor">The MaterialEditor that are calling this method (the 'owner').</param>
 /// <param name="r">Preview rect.</param>
 /// <param name="background">Style for the background.</param>
 public virtual void OnMaterialPreviewGUI(MaterialEditor materialEditor, Rect r, GUIStyle background)
 {
     materialEditor.DefaultPreviewGUI(r, background);
 }