|
How can i dock my custom EditorWindow automatically when it is called on menu or when the project opens? Thanks in advance for any idea.
(comments are locked)
|
|
As far I know, it can't be done yet, even in Unity 3.3.0f4 What you can do is create custom (predefined) Unity Layout that already loaded with your custom EditorWindow, and when trying to load the layout, your custom EditorWindow will automatically docked. At the moment you can called your custom EditorWindow and merge (docked) with another editorwindow. Hey Semut. I'd need to merge and EditorWindow with another one, as you said it can be done. Could you write how it is done, I can't find it anywhere :)
Oct 28 '11 at 01:05 PM
Izitmee
Any word on how to merge or dock this?
Oct 06 '12 at 08:53 PM
ianjosephfischer
(comments are locked)
|
|
Finally found this out, there is 2 ways to open editor windows. The first way: static function GetWindow (t : System.Type, utility : boolean = false, title : String = null, focus : boolean = true) : EditorWindow will look like : AttachmentEditor editorWindow = (AttachmentEditor)EditorWindow.GetWindow ( typeof(AttachmentEditor), false, "Attachment Editor", true); The dockable way: static function GetWindow. (title : String, focus : boolean, params desiredDockNextTo : System.Type[]) : T Will look like: AttachmentEditor editorWindow = GetWindow("Attachment Editor", true, typeof(SceneView)); Awesome! Don't know if we were all blind not to notice that overload until now, or if it was added lately. Thanks :)
Oct 08 '12 at 09:14 AM
Izitmee
(comments are locked)
|
|
I know this is old, but if anyone else comes here looking for an answer, docking can be done by dragging the editor window tab, rather than the body of the window.
(comments are locked)
|
