My C drive is on low space, I installed unity hub by moving my TEMP and TEM to D:drive in system environment variables. It worked fine, i downloaded unity editors and installed them. Source
Now, When i create a project, the project files are created in the ‘‘C:\Users\Shahzaib\AppData\Local’’ in a folder named Unity and files are really big like near a one Gb, now we cannot move local folder as a whole as it will damage operating system, so what i did is i cut the Unity folder went to my D: drive made a similar directory D:\Users\Shahzaib\AppData\Local and pasted Unity folder there and then created a junction with “mklink /j” in cmd and it worked but the problem is when project is created the space is still occupied in both C and D and if i delete the contents of folder in one drive it is deleted in other as well, like after creating a project, i deleted the contents of Unity in C drive, that caused deletion from D as well and project on opening again will again create files and again in both drives.
Please tell me what am i missing or where am i making a mistake.
If you want to use the Asset Store and Package Manager, you will need a bigger C drive. As of today, there isn’t any way around it. The package manager stores it’s data in AppData and it is not a moveable folder.
Having no room on the drive C is bad anyway.
IDK, last I checked (although it was a couple years ago) Unity checked for it and threw itself to the ground until you removed the junction and provided the original directory. Maybe this changed since then?
Even if there is a solution for Unity, having a full C: is likely to cause a variety of issues with other applications as well. I’d be looking at either moving a lot of stuff off C:, or buying a new drive personally.
edit:
If C: is an SSD, it is generally bad for SSD’s to be nearly full. SSD’s have a limited number of writes each cell can handle, and typically in the background the SSD’s firmware uses the drive’s free space to shuffle around data so you’re not repeatedly writing to the same locations. This is called wear leveling. But if you have very little free space, the wear leveling algorithm either can’t work efficiently or at all, which can cause your drive to fail much earlier than it otherwise should.
Today under most configurations the C drive is a very small solid-state drive that is only supposed to contain system data. IT folks love this as it makes their snapshots much easier however, apps like Office, Unity and even windows update itself find this configuration to be problematic. There is a major disconnect nowadays between PC creators like Dell who are really nothing more than IT admins and the game devs that need large C drives. If you can build your own PC and/or partition the drives you are better off but not everyone can do that. There are also ways to work around it like using mklink to change your folder locations but you have to do this for every folder and it can be a pain to keep it synched. Also, keep in mind that the AppData folder is extremely important and changing the folder can result in loss of data, crashes of the OS, and the inability to log in so change it at your own discretion.
I always move the Unity asset package folder… no need for gigabytes of downloaded assets to sit on premium diskspace… mklink /j "C:\Users\<username>\AppData\Roaming\Unity\Asset Store-5.x" "F:\Unity\Asset Store-5.x"
In the new editors you can set the location of the chaches, but it’s still editor setting, which means after editor boot.
Here is my post asking to put it into the Hub:
I tried, changed the and destination drive to K: but got the following message message. Tried a different destination folder and got the same.
“Cannot create a file when that file already exists.”
What now?
I got it figured out.
I had not deleted the C: drive folder. Once I did that I got the link.
Thanks for your help!