This version of Unity is unsupported.

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.