Search code examples
unity-game-enginedependency-managementpackage-managers

How to redownload Unity dependencies from asset store, automatically?


How can I download all dependencies of a Unity project, when getting it from version control?

Assuming that I have a few assets/packages from the Unity Asset Store, can I have them ignored by git / other VCS, but still have them download and install if missing? I tried using unity's package manager, but I can't figure out if it has that capability (yet, as they seem to be planning to add it).

In other platforms, package managers like npm, nuget, pip, maven etc have exactly the functionality that I'm looking for. Is there something similar for unity projects?


I have tried having my codebase separate from Unity, and building a .dll and importing it in Unity to circumvent that situation, but it's not always feasible.


Solution

  • Asset-Store items that download into your Assets folder can't do this, you need to delete and re-download/import them.

    As of Unity 2018.2, there is now a Package Manager feature which does support this, but you'll need to wait for your Asset authors to publish their packages to the new system.