Version: 2023.2

Editor.CreatePreview

切换到手册
public UIElements.VisualElement CreatePreview (UIElements.VisualElement inspectorPreviewWindow);

描述

Implement this method to make a custom UIElements inspector preview.

Inside this method, you can create your own custom UIElements inspector preview for a specific object type.

**注意**:此函数必须重载才能正常工作。