top of page

003-Opening multiple editor windows

1.1 Introduction

In this tutorial we will learn to open more than one editor window.

There may be cases we might want to open more than one window at a single time.

Here we will make our fourth editor and along with that we will open the editor MyFirstEditor,MySecondEditor,MyThirdEditor windows.ece

1.2 Creating Fourth Editor

1. Let us create a C# script called MyFourthEditorWindow and make it inherit from EditorWindow class.

2. Set its editor location to "MyEditors/FourthWindow"

3. Make a static function called OpenAllFourEditorWindows() that is going to be opening all of the four windows.

​

image.png

1. To open the current editor let us add GetWindow method to open the fourth window.

image.png

To open other windows let us add their GetWindow methods to open them.

image.png
End

Kindly support me through my Patreon account if you find these tutorials useful. Feel free to connect with me on Twitter. This support enables me to create more educational content.

image.png
bottom of page