# Drawing Preview Windows in an Editor Window

**URL:** https://discussions.unity.com/t/drawing-preview-windows-in-an-editor-window/667565
**Category:** Unity Editor
**Tags:** Scripting
**Created:** [June 11, 2017, 5:58pm UTC](https://discussions.unity.com/t/drawing-preview-windows-in-an-editor-window/667565 "2017-06-11T17:58:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alexanderameye](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/alexanderameye/32/890089_2.png) [@alexanderameye](https://discussions.unity.com/u/alexanderameye)
#### Post date: [June 11, 2017, 5:58pm UTC](https://discussions.unity.com/t/drawing-preview-windows-in-an-editor-window/667565/1 "2017-06-11T17:58:28Z")

</div>

Hello,

it’s possible to draw preview windows like these in a custom inspector deriving from ‘Editor’.

But is the same thing possible using an EditorWindow? I can’t get it to work.

Alex

---

<div class="post-metadata">

### Author: ![alexanderameye](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/alexanderameye/32/890089_2.png) [@alexanderameye](https://discussions.unity.com/u/alexanderameye)
#### Post date: [June 11, 2017, 8:35pm UTC](https://discussions.unity.com/t/drawing-preview-windows-in-an-editor-window/667565/2 "2017-06-11T20:35:43Z")

</div>

Got it to work using [this](https://docs.unity3d.com/ScriptReference/Editor.OnInteractivePreviewGUI.html)!

---

<div class="post-metadata">

### Author: ![Jeason1997](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@Jeason1997](https://discussions.unity.com/u/Jeason1997)
#### Post date: [January 29, 2019, 6:57am UTC](https://discussions.unity.com/t/drawing-preview-windows-in-an-editor-window/667565/3 "2019-01-29T06:57:48Z")

</div>

> [@alexanderameye](#):
>
> Got it to work using [this](https://docs.unity3d.com/ScriptReference/Editor.OnInteractivePreviewGUI.html)!

It works, thanks
