Sacchan-VRC / SaccFlightAndVehicles

Other
109 stars 25 forks source link

Add Assembly Definition #9

Closed esnya closed 2 years ago

esnya commented 2 years ago

It allows other libraries that reference SaccFlight to use the Assembly Definition. It also makes the binaries to be compiled independent and faster to compile.

Docs: https://docs.unity.cn/2019.4/Documentation/Manual/ScriptCompilationAssemblyDefinitionFiles.html

One thing to note is that we need to edit the Assembly Definition when using external scripts. image

Sacchan-VRC commented 2 years ago

but why?

esnya commented 2 years ago

Not only in this project, developers often use AssemblyDefinition. Because they want to compile faster or use the PackageManager. AssemblyDefinition is also necessary to get rid of the hateful and stupid Unitypackage/Asset system in the future.

But we can't use another project that doesn't have an AssemblyDefinition.

There is little downside to adding. So I'm evangelizing AssemblyDefinition.