文档

Unity Engine

Unity Engine

CreatePreview(VisualElement)

Implement this method to make a custom UIElements inspector preview.
阅读时间1 分钟最后更新于 1 天前

Definition

public virtual VisualElement CreatePreview(VisualElement inspectorPreviewWindow)

Parameters

inspectorPreviewWindow

Returns

Type

Description

VisualElement

Remarks

Inside this method, you can create your own custom UIElements inspector preview for a specific object type.
Note: This function has to be overridden in order to work.