-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assembly Definition Files #101
Comments
The feature is fairly new in Unity. It works by creating Assembly Definition Files on a per folder basis. All scripts in that hierarchy then gets compiled into one assembly for each file, which does not recompile unless something changed inside of these folders scripts. This saves compile time on large projects. |
I've been working on another project in the very latest version of Unity (partly as a way to learn all of this new stuff) and I think I understand assembly definitions pretty well. I think it should be fairly easy for me to support them :) |
I've just checked out setting up asmdefs in Dissonance and it seems to work with the current layout of Dissonance files.
This works because the internal attributes which you mention (defined in I'm not completely certain if/how/when we'll distribute this in Dissonance. We try to keep differences between Unity versions versions to a minimum and we don't really get a huge advantage from asmdefs because we're basically already using them with the implicit |
I just realised my previous response wasn't quite correct, sorry about that. The problem is that while my previous response works in editor it fails when you try to build the standalone player because all of the editor only stuff has been bundled up into the same assembly definition (which of course cannot work in player). So you need to create more assemblies:
Now this will cause problems because some of these assemblies now try to access Find
To expose all the internals of this assembly to the assembly named I'm probably going to include these changes in the next version of Dissonance, shipping in the 2018.1+ versions of Dissonance. |
Tom has just merged a PR of mine which partially solves this problem (and will be in the next release). For now all I've done is add the appropriate We didn't ship the asmdefs themselves for a couple of reasons:
|
@martindevans I'm impressed about the effort you took to implement them. It's always nice to see others keeping up with Unity's latest versions for future upgraders to come. |
Dissonance 6.2.5 is live on the asset store with the changes made to Dissonance to support users adding asmdefs. Check out the documentation here to see exactly which asmdef files you need to define. |
Alexeess requests support for assembly definition files.
The text was updated successfully, but these errors were encountered: