Search Feedback

25
votes

Assembly definition files should support external dependencies to minimize recompilation

Scripting

-

-

Currently each assembly created with an assembly definition file is given a reference to *every* precompiled assembly (plugin), as shown in Figure 3 of this page:
https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html

This results in a rebuild of every assembly when any precompiled assembly is changed. This is a problem in a build environment such as ours where the bulk of our code is built from Visual Studio and copied into the Assets folder in a post-build step.

I would like to suggest that assembly definition files can specify explicit dependencies on precompiled assemblies, rather than implicitly depending on all such assemblies. The assembly definition editor perhaps also needs a checkbox to opt out of all the implicit dependencies.

Note that this is not just a mechanism to improve script build / import times, but also enables us to manage dependencies correctly between systems, to prevent unwanted dependencies between modules.

This won't prevent loose script recompilation, but we can ensure all scripts are in assembly definition files and that there are no more loose scripts.

I suggested this idea in person to Richard Fine at Unite LA 2018 and he agreed that it seemed like a good idea.

If you have any questions about how we would like to use this feature, don't hesitate to get in touch. Thanks!

Comments (2)

  1. 2cc112b272d6ad5f9fce3c0346739dff?d=mm

    sr480029

    Nov 04, 2018 04:02

    And yes please make unity tutorual for free and take extry roality charge from us because we can learn unity and make amusing apps and you will too earn much continuously but not just one time earn.

  2. 2cc112b272d6ad5f9fce3c0346739dff?d=mm

    sr480029

    Nov 04, 2018 03:59

    Please add C++ and VR support to unity

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10650)

2D

(277)

Ads

(52)

AI & Navigation

(79)

Analytics

(130)

Animation

(395)

Asset Store

(345)

Asset Store Publisher

(11)

Assets

(540)

Audio

(179)

Cloud Build

(143)

Collaborate

(59)

Docs & Tutorials

(238)

Editor

(2481)

Everyplay

(16)

Game Performance Reporting

(16)

General

(971)

Graphics

(865)

GUI

(426)

Input

(168)

Licensing

(90)

Networking

(187)

Physics

(381)

Platforms

(439)

Profiling & Optimization

(83)

Runtime

(181)

Scripting

(1160)

Terrain

(170)

WebGL

(142)