Search Unity

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,807
    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.