Skip to content

Folder Assembly Definitions

Creating individual assembly definitions for specific folders in your Unity project is easy with Cobra Assemblies.

Follow these simple steps to create a module for a selected folder:

  1. Open the Project view in Unity and navigate to the folder where you want to generate the assembly definitions.
  2. Right-click on the folder to open the context menu.
  3. Select "Cobra Assemblies" and then "Create Module" to generate assembly definitions for the selected folder.
  4. Assembly definitions and assembly references will be generated for the folder and all its subfolders.
  5. Two types of assembly definitions will be created, one for runtime and one for editor scripts. If a subfolder is named "Editor", it and all its subfolders will be included in the Editor assembly definitions.
  6. To clean up the folder, Select "Cobra Assemblies" and then "Clean Up Folder" to restore the folder to its original state.

By using this feature, you can selectively optimize specific areas of your project without the need for manual assembly creation, saving you time and effort while still providing the benefits of improved performance and organization.