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
The visual element that hosts the material preview.
Returns
Type | Description |
|---|---|
| VisualElement | The root visual element for the material preview, or null if the material doesn't support a preview. |