Handles project folder creation and deletion with ease inside the Unity editor.
- Hit
(+)
and selectAdd package from Git URL(Unity 2019.4+)
- Paste the
git URL
for this package: https://github.com/ebukaracer/DirTool.git#upm - Hit
Add
Racer > DirTool > Menu
- After successful installation, navigate(above) to launch the Editor window
Racer > DirTool > Quick Create
- Handy dropdown option for quickly creating folders that were already supplied in the Root-Directory and Sub-Directories fields
Racer > DirTool > Remove package
- Handy dropdown option for quickly uninstalling this package without leaving any trace
- Creates a root folder alongside nested sub-folders, using the Root-Directory and Sub-Directories fields supplied. The Root-Directory field can also contain nested directories by separating with a slash symbol:
Project/root
- You must supply the Sub-Directories along with their Root-Directory(optional), since this operation mostly focuses on creating the Sub-Directories.
- Leaving Root-Directory field empty still creates the supplied Sub-Directories in relative to Asset's folder:
Assets/[Sub-Directories_supplied]
- Deletes only the Sub-Directories supplied leaving out their Root-Directory.
- If you supplied a Root-Directory such as:
Project/
and Sub-Directories:Models, Scripts
, this process will only delete the Sub-Directories:Models, Scripts
, omitting the Root-Directory:Project/
along with other Sub-Directories you did not supply in the Sub-Directories field. - You must supply the Sub-Directories along with their Root-Directory(optional), since this operation mostly focuses on deleting the Sub-Directories.
- Leaving the Root-Directory field empty still deletes any Sub-Directories it finds that is relative to Asset's folder:
Assets/[Sub-Directories_found]
- Deletes the Root-Directory alongside Sub-Directories supplied.
- If you supplied a nested Root-Directory such as
Project/Models
, the deletion process will terminate atProject/
while deletingModels/
along with its contents. - If you supplied:
Projects/
, this process deletes the Root-Directory:Projects/
along with any Sub-Directories it may contain. Hence terminating atAssets/
- Therefore, you may leave the Sub-Directories field empty, since this operation focuses on deleting only the Root-Directory. It is impossible to delete the
Assets/
directory.
- Creates an
asmdef file
in the path supplied at the Root-Directory field. - If you intend to use a custom path, start with:
Assets/[your_desired_path]
-
The operations above can also be applied to already existing directories in your project.
-
Toggle on or off
Recursive delete
, to control how to delete parent directories containing nested directories/subdirectories. -
Ensure no slash symbol:
/\
terminates the Root-Directory field:Project/Scripts/
insteadProject/Script
-
To remove this package completely(leaving no trace), navigate to:
Racer > DirTool > Remove package
Contributions are welcome! Please open an issue or submit a pull request.