NET has general information about assemblies in C#. Similarly, because Library doesn’t depend on any other assemblies, you can easily reuse the code from Library in just about any other project.Īssemblies in. Here, any changes to the code in Main cannot affect the code in Stuff. You might split up your code into multiple assemblies, as shown in the diagram above. It prevents them from being added to the default assemblies automatically, and limits which scripts they can access. Organizing your scripts into custom assemblies promotes modularity and reusability. All scripts are compiled for all platforms.A script can access types defined in any other script.Every time you change a script, Unity recompiles all other scripts.This works well for small projects, but it has some drawbacks: By default, Unity compiles nearly all of your game scripts into the predefined assembly, Assembly-CSharp.dll. An assembly is a C# code library, a collection of types and resources that are built to work together and form a logical unit of functionality.