Getwindow desiredDockNextTo example?

Hi folks,

I’m trying to figure out how to call this getwindows function. I would loved to create a new window docked to the scene view or inspector.

that i found at the bottom of unity documentation

http://docs.unity3d.com/Documentation/ScriptReference/EditorWindow.GetWindow.html

so far i gone, i scrited that

and i got the error

Anyone has found who to make it work?

That looks complicated. Try:

EditorWindow.GetWindow<mywindow>("My Window", typeof(SceneView));

I think that will work better.

1 Like

ok…
I figured out how your “” worked.
it’s C#.
I tryed it in a new script and it’s working. thx EddyEpic. but …

Does anyone know how to make it work in java ? ( don’t throw me stones, pls! I’m learning and there is only javascript unity example)

EditorWindow.GetWindow.<mywindow>("My Window", typeof(SceneView));

I believe that is the solution (the period between GetWindow and ). I don’t work in JS, so I apologize for the mistake.

Ok for the C# solution.

I translate all my code in C#. I’m done with this question.

Thx EddyEpic