Skip to content

Move Unity caches and asset store files into another drive

mika edited this page Nov 1, 2021 · 1 revision

Package Cache

  1. Move the complete 'C:\ProgramData\Package Cache' directory to another place (the source directory 'Package Cache' must be deleted)
  2. Create the junction: mklink /J "C:\ProgramData\Package Cache" "D:\ProgramData\Package Cache"

Unity GI cache

  1. Open Unity preferences
  2. Open the 'GI cache tab'
  3. Clean the GI cache
  4. Set a new place for the GI cache

Unity AssetStore download

  1. Move the 'C:\users\username\appdata\roaming\unity\asset store-5.x' directory to the destination (the source directory 'asset store-5.x' must be deleted)
  2. Create the junction: mklink /J "C:\users\username\appdata\roaming\unity\asset store-5.x" "E:\users\username\appdata\roaming\unity\asset store-5.x"

Move other caches away

  1. Open the System properties (right-click on the 'Computer' icon, select 'Properties', then click on on 'Advanced system properties'
  2. Add the 'UPM_NPM_CACHE_PATH' variable with the destination directory (do not create the destination directory)
  3. Add the 'UPM_CACHE_PATH' variable with the destination directory (do not create the destination directory)
  4. Delete the 'npm' and 'packages' directories from 'C:\Users<USER_NAME>\AppData\Local\Unity\cache'
  5. Restart the computer

source: https://forum.unity.com/threads/almost-in-2022-and-unity-still-force-assets-install-on-the-c-drive.1191193/#post-7618972