Business unity underlying resource manager to load game framework - Personal Learning Record (1)

Disclaimer: not reprint without permission https://blog.csdn.net/Edision_li/article/details/89875280

Assembly

After unity2017.3 can custom assemblies, convenient decoupling, some of the underlying project, things can be packaged to facilitate cross-platform, the new test10 script below, to generate the dll directory (by default also generate some dll after 2018): Library \ ScriptAssemblies.

Right-Create-AssemblyDefinition can create a custom assembly, named Test1, you will find test10.cs test1.dll previously created will belong to the newly created, before the default dll gone, that is to say, the new dll will contain the same directory and subdirectories of the script (does not contain the same level in the folder script, in general it is the principle of proximity to the folder distinction).

Does not reference a library (using), it is unable to invoke the script, when the custom assemblies you want to reference other assemblies custom, you need to add dependent, so that we can between custom assembly dependencies. The final generated names dll is determined by the name on the monitoring panel recommended the same two names, to avoid misunderstanding.

      

And the default assembly (Assembly-CSharp.dll) dependent on all assemblies are automatically customized, need to manually add dependencies. (1) high version will appear unity References-test asseemblies, if you do not pack into the project will be: all test scripts into the same folder sharing an assembly, and then check the package would not be to the project. (2) allow unsafe code say is unsafe code, if in C # with other languages ​​proposal check. (3) if the proposed platform anyPlateform. Figure:

  

 

Guess you like

Origin blog.csdn.net/Edision_li/article/details/89875280