11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie”的Cookie偏好设置为“是”。
1/7
Extensively tested on 2019LTS 2020LTS, and 2021LTS. 2022 support added in 1.4b!

Auto-ASMDEF provides an easy way to create assembly definition files to your entire project or to selected folders, in a way that resembles Unity's special compilation folders.

 

MANUAL

 

Why use assembly definition(or asmdef) files?
Using assembly definitions can speed up compilation times, because when set up properly you only have to recompile the part of your code that's changed - the most common scenario is you have a lot of assets from the store which clutter both your first and second passes, meaning whenever you change your own code you'll have to recompile those as well, even when they aren't changed at all, an essentially empty project with only a handful of popular assets can lead to even a minute long compilation each time when in reality you might only have a few thousand lines of code that needs to be recompiled.

 

So what's the catch?
Setting them up by hand can be extremely cumbersome. Each time you create a new asmdef file Unity will recompile, then when you add an assembly definition reference it has to recompile again. I set up a test project(with Playmaker, Behaviour Designer, Doozy UI, MasterAudio and EVP5 - so nothing crazy, I'm certain most of you have a similar setup even on day0), these required 487 asmref files - and not only that, you have to make sure you add them to the correct assembly(which as you might imagine can be a huge pain when you have to do it 487 times). But apart from that, even if I know exactly where to place the asmref files, and which assembly I want to target, in this case it took approximately 11 seconds to recompile my scripts, doing it 487 times would mean almost an hour and a half of waiting alone. Ouch.

 

Alright, so we ended up between a rock and a hard place, where to go from here?
Auto-ASMDEF solves these issues completely. You set a target directory you want to use for storing the created asmdef files, if you want to always include assemblies you can set them up here as well, you can set up the excluded folders if you want, then press a button and boom, done. It will automatically create the required asmdef files, and the references in each subfolder which contains a script, and at that point you only have to recompile those assemblies when you make a change to them(for example if you update them from the store).

 

The folder structure stays the same, your files won't be moved or changed in any way, only new ones will be created(and this whole process can be reversed with a single click as well if needed).

 

Requirement: 2019.2 and up(it relies on .asmref files which were added in an alpha version of 2019.2)

Auto-ASMDEF

(19)
79 users have favourite this asset
(79)
$19.99
席位
1
更新的价格和增值税在结算时计算
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
2.0 MB
最新版本
1.4b
最新发布日期
2022年8月29日
原始 Unity 版本
2019.4.40
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR