Search Unity

How to make several separate Inspector window instances

Discussion in 'General Discussion' started by T0rp3d0, Apr 26, 2019.

  1. T0rp3d0

    T0rp3d0

    Joined:
    Feb 4, 2018
    Posts:
    31
    Hello everyone,

    I've started working with scriptable objects this week, and really like it. However, i find myself frequently switching between different scriptable objects a lot whenever i need to set some fields in-editor of said scriptable objects. And with this comes excessive scrolling and hunting down of scriptable objects in the project view, followed by more scrolling and hunting down scriptable objects to return to a previous inspector window. I'm aware of locking the inspector window, but that too is not enough, and a bit cumbersome. I then decided to look into custom windows and custom editors. But everything concerning custom window/editor scripting is so foreign and confusing -and the documentation is a little tricky too.

    My goal is to write a custom window script that allows clicking/selecting any scriptable object -in the project view or wherever, then pressing a shortcut or a window button at the top, and choosing to open an extra inspector window for the currently selected scriptable object. The original inspector should still persist, which means there would now be two -or potentially more, inspector windows. I know this is a tall order, but if anyone out there could please walk me through making such a script, it would really benefit the community -and myself of course :) So that's all i wanted ask. Sorry for the wall of text.

    Regards,

    Godfrey
     
  2. BIGTIMEMASTER

    BIGTIMEMASTER

    Joined:
    Jun 1, 2017
    Posts:
    5,181
    You can make as many inspector windows as you want. Just click the drop down option box in the upper right corner. This is how I typically work. I keep one inspector open for locking, and then i have one or three more as I need thhem.
     
    Ryiah, angrypenguin and xVergilx like this.
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,435
    Last edited: Jul 4, 2019
  4. T0rp3d0

    T0rp3d0

    Joined:
    Feb 4, 2018
    Posts:
    31
    Oh cool, i didn't know that. Thank you.