Easy Way to Create Multiple Folders in Unity

Muhammad Salihin Bin Zaol-kefli
2 min readJul 19, 2021
Create Modules and subfolders

One of the things I usually do in a Unity project is to organize my project’s Assets. I do so by creating separate folders for the different Modules in the project.

What is a Module?

A Module is a group of related assets that can be organized into separate subfolders. Examples of Modules would be Environment, GUI and Player. Each of these modules have their own group of related assets organized into separate subfolders such as Materials, Prefabs, Scenes, Scripts, Textures, etc.

Example of a Player module

Problem

Creating all these folders every time you wish to organize a group of assets as a Module might be simple but it can get tedious! Imagine having to create a bunch of these Modules when you decide to do a massive reorganization of your project’s Assets. It will definitely take quite a bit of your time which could be used for doing more productive things for your project. If only there was an easier way of doing this.

Solution

I decided to implement editor scripts in Unity to save me time creating Modules and subfolders in my Unity projects. Also, I decided to implement this solution as a package since I was exploring creating custom Unity packages at the time.

You can install the package in Unity’s Package Manager using this git URL: https://github.com/SalSatSat/CreateFolders.git

Conclusion

The solution can definitely be improved on but for now, it serves it’s purpose and has helped me save some time performing the tedious task of creating folders in my Unity projects. I hope this can help do the same for you.

--

--