Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Programmatically collapse scene node in editor

Discussion in 'Scripting' started by MatthewHarmon, Aug 24, 2016.

  1. MatthewHarmon

    MatthewHarmon

    Joined:
    Mar 5, 2015
    Posts:
    24
    We are heavily using the multi-scene editing feature, and to clean up the editor view I want to programmatically collapse/roll up each of the scene roots. Is there an API for this? Can't find anything poking around in
    UnityEditor.SceneManagement;
     
  2. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,767
    No idea if that's possible, but if it is, it would be through Editor scripts, not SceneManager.

    Also if you're not aware you can CTRL+A everything in the hierarchy and press left arrow to collapse all. Maybe that action is scriptable? I avoid editor scripting like the plague...
     
    Last edited: Aug 24, 2016
    image28 likes this.
unityunity