Search Unity

Help on custom Editor Window

Discussion in 'Immediate Mode GUI (IMGUI)' started by bnatividad, Mar 27, 2015.

  1. bnatividad

    bnatividad

    Joined:
    Oct 17, 2013
    Posts:
    5
    Hello,

    I just watched the youtube video:

    Unite 2014 - Editor Scripting from the real world


    and I'm amazingly inspired to immitate his advance editor tools and one of my goal is something like his custom EditorWindow screen:
    upload_2015-3-27_17-50-3.png

    I already have a blank editor window but I just don't know how I could add the left side container, and the tree-view-ish control. Most probably this is done using GUILayout instead of GUI right?

    Need your help on how can I do this.

    Cheers!!
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    I think this example is a bit too complex for a first window...

    For creating simple menus, inspectors, windows, you can get by fairly quickly.
    But, for more complex scenarios (e.g: you want to create a tree view component or something more complicated) it becomes a lot harder to implement.

    You could grab the Toolbox asset from the asset store, i think it provides some basic stuff like a tree view (@LightStriker might be able to elaborate more as the creator of this asset)
     
  3. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,717
    It has a full TreeView inside, but it's not properly exposed or documented. On the other hand, there's 2-3 TreeView asset on the store, but I can't say anything about their quality since I never tried them.