Search Unity

Achive Hierachi Scene Foldout Style in Custom Editor Window

Discussion in 'Immediate Mode GUI (IMGUI)' started by abelreyes, Sep 27, 2017.

  1. abelreyes

    abelreyes

    Joined:
    Sep 11, 2013
    Posts:
    28
    Hey there!
    I'm trying to achieve the MultiScene Hierarchy Foldout style. I thought it would be included in EditorStyles or something, but after lots of searching, I can't find the way to replicate it anywhere.

    This is what I'm trying to achieve:
    upload_2017-9-27_13-6-44.png

    (Notice the gray divider at the bottom)

    Does anyone know how to achieve this?
    Thank you!!
     
  2. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    826
    I took a quick look with this tool: https://wiki.unity3d.com/index.php?title=Show_Built_In_Resources
    but sadly could find the exact match in the list. Maybe I was not searching thoroughly enough or maybe you will find another style that satisfies your needs. If you don't find it in that list, I fear you won't find it at all.
     
  3. PsyKaw

    PsyKaw

    Joined:
    Aug 16, 2012
    Posts:
    102
    The scene hierarchy background style is:
    Code (CSharp):
    1. GUIStyle sceneHeaderBg = (GUIStyle)"ProjectBrowserTopBarBg";
    And the style of the option icon on the right is:
    Code (CSharp):
    1. GUIStyle optionsButtonStyle = (GUIStyle) "PaneOptions";
     
    Peter77 likes this.