Skip to content

Quickly set up project directories and create asmdef files with ease in the Unity editor!

Notifications You must be signed in to change notification settings

ebukaracer/DirTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DirTool

License: MIT

Handles project folder creation and deletion with ease inside the Unity editor.

DT2.gif

Read Docs

Installation

Quick Usage

Setup:

Racer > DirTool > Menu

  • After successful installation, navigate(above) to launch the Editor window

Quick Create:

Racer > DirTool > Quick Create

  • Handy dropdown option for quickly creating folders that were already supplied in the Root-Directory and Sub-Directories fields

Remove package:

Racer > DirTool > Remove package

  • Handy dropdown option for quickly uninstalling this package without leaving any trace

Create [Directories]:

  • 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]

Delete [Sub Directories]:

  • 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]

Delete [Root Directory]:

  • Deletes the Root-Directory alongside Sub-Directories supplied.
  • If you supplied a nested Root-Directory such as Project/Models, the deletion process will terminate at Project/ while deleting Models/ 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 at Assets/
  • 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.

Create [ASMDEF]:

  • 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]

Notes

  • 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/ instead Project/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.

About

Quickly set up project directories and create asmdef files with ease in the Unity editor!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages