Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

MeshPreview.OnPreviewGUI

Declaration

public void OnPreviewGUI(Rect rect, GUIStyle background);

Parameters

rect Rectangle in which to draw the preview.
background The background style.

Description

Call this from an Editor.OnPreviewGUI or ObjectPreview.OnPreviewGUI to draw a mesh preview.