Advertisement
eduardogr

Untitled

Sep 11th, 2021
1,229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1.  
  2.     private float _space = 20f;
  3.  
  4.     private Dictionary<int, string> _folders = new Dictionary<int, string>();
  5.  
  6.  
  7.     [MenuItem("Unity/Create structure")]
  8.     static void CreateFolder() {
  9.  
  10.         GetWindow<CreateFolders>();
  11.     }
  12.  
  13.     private void OnGUI() {
  14.  
  15.         int i;
  16.  
  17.         GUILayout.Label("Here you can write the names of your folders", EditorStyles.largeLabel);
  18.  
  19.         GUILayout.Space(_space);
  20.  
  21.         for (i = 0; i < _folders.Count; i++) {
  22.             _folders[i] = GUILayout.TextField(string.Empty);
  23.         }
  24.  
  25.         if (GUILayout.Button("New Folder")) {
  26.             _folders.Add(i, "Anim");
  27.         }
  28.  
  29.         if (GUILayout.Button("Close")) {
  30.             Close();
  31.         }
  32.     }
  33.  
  34.     [MenuItem("Unity/Organize files")]
  35.     static void OrganizeFiles() {
  36.  
  37.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement