Version: 2022.3
public void OnPreviewGUI (Rect rect, GUIStyle background);

参数

rect 在其中绘制预览的矩形。
background The background style.

描述

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