Documentation

Unity Engine

Unity Engine

CreatePreview(VisualElement)

See Editor.CreatePreview.
Read time 1 minuteLast updated 21 days ago

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.