Version: 2020.2
Meeting legal requirements

Assembly definition and packages

You must associate scripts inside a package to an assembly definition file (.asmdef). Assembly definition files are the Unity equivalent to a C# project in the .NET ecosystem. You must set explicit references in the assembly definition file to other assemblies (whether in the same package or in external packages). See Assembly Definitions for more details.

Use these conventions for naming and storing your assembly definition files to ensure that the compiled assembly filenames follow the .NET Framework Design Guidelines:

  • Store Editor-specific code under a root editor assembly definition file:


  • Store runtime-specific code under a root runtime assembly definition file:


  • Configure related test assemblies for your editor and runtime scripts:



To get a more general view of a recommended package folder layout, see Package layout.

Meeting legal requirements