文档

Unity Engine

Unity Engine

CreatePreview(VisualElement)

See Editor.CreatePreview.
阅读时间1 分钟最后更新于 21 天前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public override VisualElement CreatePreview(VisualElement inspectorPreviewWindow)

Parameters

inspectorPreviewWindow

The visual element that hosts the material preview.

Returns

Type

Description

VisualElementThe root visual element for the material preview, or null if the material doesn't support a preview.