Skip to main content

Unity 3D Assembly Definitions

✍ Last Updated : November 4, 2022

πŸšͺ Prequisite Knowledge (Optional)

UploadDescribe InInitial ProgressKnowledge that reader need to know before reading this article

❓ Key Question / Problem / Issue

Describe what question / Problem / Issue this knowledge should answer

  1. Why we need Assembly Definition
  2. What Issue Assembly Definition trying to solve
  3. Any known Problem in Assembly Definition Implementation

βœ… Expected Output/Definition of Done

Define what information you really need and the definition of done

  1. Guideline on what Assembly Definition is?
  2. Guideline on How to start using Assembly Definition
  3. List of Trick on How to properly Implement Assembly Definitions

🎁 Resulting Solution

Write writing results below

Assembly definitions

An assembly is a C# code library that contains the compiled classes and structs that are defined by your scripts and which also define references to other assemblies

Untitled

How to:

  1. Right Click on the Package β†’ Create β†’ Assembly Definition

Untitled

Frequently Asked Question

  1. I’ve heard it slows compilation speed instead

    no it doesn’t. from the forum above what cause editor slowing down is caused by unity domain reloading.

    you can check how assemblies are built and how long it takes. with the following gist

    Find out what assemblies are being built and how long each takes.

    additionally here are some trick found to reduce editor slowing down by disabling domain reloading. but watch out for other caveats within it

    Domain Reloading

    there also has been lots of update since the post that improve assembly definition performance

    Unity 2020.2.0 - Unity

    Unity 2021.1.0 - Unity