DefaultPreviewGUI() public méthode

public DefaultPreviewGUI ( Rect r, GUIStyle background ) : void
r UnityEngine.Rect
background UnityEngine.GUIStyle
Résultat void
Exemple #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);
 }
 /// <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);
 }