Speed Up Compile Times in Unity with Assembly Definitions

preview_player
Показать описание

Learn how to get back into the Editor faster after making changes to your code by using Assembly Definition Files in your project!

--------------------------------------------------------------------------------
Want to support the channel?

Use these links to grab some cool assets from the asset store:

--------------------------------------------------------------------------------
Socials and Other Stuff:

Рекомендации по теме
Комментарии
Автор

Your use of multi scenes is pretty interesting, would be great to see a tutorial on that.

smally
Автор

You should probably mention in the video, that using assembly definitions, will require you to update the definition, if you suddenly add a dependency in the code. Ie. When you add a "using namespace" to the top of the file. That massively caught me off guard when I first used them, since I thought it would simply update them automatically. Or give some kind of warning. But not, it simply gives you a compile error saying that the reference doesn't exist.

mrx
Автор

Nice. I never bothered to look into Assembly Definitions because I thought they were hard to setup. Thanks for the great explanation.

Mashyny
Автор

WORKING LIKE A
I just created an assembly definition for my Script folder and added URP as dependencies. Load time reduced from about 20 seconds to 1 second.

queenofpain
Автор

Thank you kindly! This has helped me reduce my game's compile time from "This takes so long, I don't enjoy working on this game anymore" back to "This is so much fun again, just like back in the old days when my project used to be small".

benjamingerd
Автор

This might be the only tutorial for lowering compile time.
I have been searching for something like this for a long time.
thank you very much!

tifbsdw
Автор

This channel is one of the very few for which I enables push notifications. Truly great work Matt, thank you very much for the content you create!

epiphanyatnight
Автор

Happy I found this video, it's surprisingly hard to find a video that breaks this down in an organizational way, I really appreciate it!

Denzill
Автор

Thanks matt, Great explanation of something I've been so lazy to learn for the past 5 years,
Keep up the awesome content, cheers!

TheOriginalFish
Автор

Thanks for putting this up. I've been trying to set up assemblies in a project properly. It's really difficult when you are working in a team and not everyone understands how assembly works and what architecture to follow. Hoping that this video gets us up to speed a little.

saadbintarique
Автор

I've watched a few of your videos, but this one got you a new Subscriber. Thanks so much and keep up the great work!

mica
Автор

I really liked how you've made this video. Super clear and easy to understand. So quite calm.

nandkudasai
Автор

I think I spent the good half of the afternoon trying to understand ASMDEF via Unity's documentation and I wasn't much wiser after. Your video really helped me to understand! Thank-you very much!

marty
Автор

I'm working in the Observer Pattern, so none of my classes have dependencies or references. I had been thinking about adding assemblies for a long time, but a close package developer I worked with advised that it wouldn't work with his package (backward compatibility issue). In this case that code just got moved to it's own non-assembly area. I highly recommend learning the observer pattern and using assemblies. Saves a lot of time on developing and testing new features.

richardrothkugel
Автор

Another good thing about splitting code into assembly definitions is actually being able to hide system specific stuff with the "internal" keyword, and cleanly separate between the internal classes/methods and the exposed part that other systems/assemblies can use (pretty much an API), that also ensures that you can take any assembly with it dependencies and drag and drop it into any project with no worries since all of the it's dependencies are there.

Bloodthirst
Автор

Great advice, and thanks for explaining and showing how to do it so succinctly!

NelsonBilling
Автор

Thank you so much, I've learned a lot in this video! Definitely will try it out in my next project. Big thanks!

kay-dpqw
Автор

Thanks man. That saved me tons of time and less distractions for sure!

lgtwzrd
Автор

I like your tutorials, they are very much neet and clean, quite easy to understand and very useful :)

blackwarrior
Автор

Awesome! I shall keep this in mind when I start another project. Thanks dude

ChiliDev