Version: Unity 6 (6000.0)
Language : English
Test conditional compilation
Introduction to assemblies in Unity

Organizing scripts into assemblies

Assemblies are individual units of compiled code that group types and resources together. Organizing scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary
into assemblies has important advantages, especially as your codebase grows.

Assemblies help you think clearly about the architecture of your code and about managing dependencies. By exercising fine-grained control over references, you can reduce unnecessary recompilation time and make your code easier to debug.

Topic Description
Introduction to assemblies in Unity Understand the fundamentals of how assemblies work in Unity and why using them to organize your scripts is beneficial.
Creating assembly assets Create various kinds of assembly assets to customize your assemblies.
Referencing assemblies Set up references between assemblies, override the default references and understand the limitations Unity places on references.
Conditionally including assemblies Use scripting symbols to conditionally include or exclude assemblies from compilation.
Assembly metadata and compilation details Define metadata for your assemblies.
Assembly Definition properties reference Inspector-editable properties of assembly defintion assets and their meaning.
Assembly Definition Reference properties reference Inspector-editable properties of assembly defintion reference assets and their meaning.
Assembly Definition file format reference Assembly definition file format reference.

Additional resources

Test conditional compilation
Introduction to assemblies in Unity