Unity Editor Clutter

Is there any way to reduce the clutter in the unity editor. When adding button click events the list goes off the screen.

I would suggest using DRY principles to reduce the number of public methods you have. Why not make one method, public void Level (int levelNumber). That can call other methods as needed. Then make the other level methods private.

In general terms the less public members you have, the better.

7 Likes

What he said.

Level01…Level10 just screams for Level(int number) parameter. Alternatively you could create individual components for each level, in this case methods for each one of them will be visible in their own menus.

3 Likes
public void LoadLevel (int lvl){
     if(lvl == 0){
          //do something
     }
}
2 Likes