I need to work on a project in two different PCs, that are mostly disconnected. Previously, was enough to download the packages and the project kept them cached, but in most recent Unity versions I have seen that every time the project loads, it tries to connect to Package Manager, and if connection fails, the previously downloaded packages are no longer valid. I know I can force the project to use local copies of packages, but that requires to put them in the same path in both PCs. Is there some place inside Assets folder I can use for this?
Hello @rogerdv ,
sorry to hear you have trouble using Unity in an offline state.
To fix your issue, I think you could use local copies and use a relative path with the file: reference in your project manifest.
If your project manifest is something like:
“dependencies”: {
“com.unity.my-local-package1”: “file:/path/to/com.unity.my-local-package1”,
“com.unity.my-local-package2”: “file:/path/to/com.unity.my-local-package2”
},
you can change it to be:
“dependencies”: {
“com.unity.my-local-package1”: “file:…/com.unity.my-local-package1”,
“com.unity.my-local-package2”: “file:…/…/com.unity.my-local-package2”
},
and use …/ as needed to find the package relative to the project manifest.