Search Unity

[Free] Small Hierarchy Enchancement - Double Click to open folders

Discussion in 'Assets and Asset Store' started by jedy, Oct 23, 2012.

  1. jedy

    jedy

    Joined:
    Aug 1, 2010
    Posts:
    579
    I hate the little arrow, so here is this small snippet to take care of that.
    Just import it ( with its corresponding editor folder ) somewhere into your unity project.

    Link:
    https://dl.dropbox.com/u/22188686/HierarchyDoubleClick.rar

    PS: Thanks to Tenebrous for showing me this cool Unity functionality.

    Cheers,
    Jedy
     
  2. hima

    hima

    Joined:
    Oct 1, 2010
    Posts:
    183
    Is this for Unity4? I tried it on 3.5 and this is the error I got

     
  3. jedy

    jedy

    Joined:
    Aug 1, 2010
    Posts:
    579
    Oh. It seems I've forgot the extension methods. Nightly builds..
    Anyway I've just added them.
     
  4. hima

    hima

    Joined:
    Oct 1, 2010
    Posts:
    183
    Thank you! Download it and tried it again just now. There is no error but nothing happens though. If I understand this correctly, we should be able to double click on the folder inside the project window to look inside that folder right?

    I'm on OSX, by the way.
     
  5. jedy

    jedy

    Joined:
    Aug 1, 2010
    Posts:
    579
    Basically it should expand the folder in your hierarchy with double clicking.

    I don't really have a MAC on my own to fix it, but I suppose the problem is in the different path separators - try changing line 33 from :
    Code (csharp):
    1. subdirs[i] = subdirs[i].Replace("\\", "/");
    to
    Code (csharp):
    1. subdirs[i] = subdirs[i].Replace("/", "\\");
    It's a shot in the dark but it's worth a try.