Version: 2019.1
public void OnPreviewGUI (Rect r, GUIStyle background);

パラメーター

rプレビューを描画する矩形
background背景イメージ

説明

自身のカスタムのプレビューをインスペクター上のプレビューエリア、プライマリ Editor ヘッダーとオブジェクト選択ツールで作成するために実装します。

If you implement OnInteractivePreviewGUI then this will only be called for non-interactive custom previews. The overidden method should use the rectangle passed in and render a preview of the asset into it. The default implementation is a no-op.

関連項目: OnInteractivePreviewGUI