Version: 2023.2
언어: 한국어

ObjectPreview.OnInteractivePreviewGUI

매뉴얼로 전환
public void OnInteractivePreviewGUI (Rect r, GUIStyle background);

파라미터

r Rectangle in which to draw the preview.
background Background image.

설명

Implement to create your own interactive custom preview. Interactive custom previews are used in the preview area of the inspector and the object selector.

Implement this instead of OnPreviewGUI if you only want to display interactive custom previews (you can implement both if some previews are interactive and others aren't). 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.