Search Unity

Access denied when trying to create prefab

Discussion in 'Editor & General Support' started by solar138, Aug 10, 2020.

  1. solar138

    solar138

    Joined:
    Jun 16, 2020
    Posts:
    1
    I was trying to create a prefab of my bullet gameObject when it said that there was an error moving a file:

    Moving %homepath%/Documents/OneDrive/Unity Games/Tower Defense/Temp/UnityTempFile-7b30523a422d1ab4b87ed3ff11a40827 to %homepath/Documents/OneDrive/Unity Games/Tower Defense/Assets: Access is denied.

    I checked the security settings for the assets folder, it's fine.
    I checked that I can create and remove files with Windows Explorer.
    I restarted Unity and my computer.
    I ran Unity Hub in Administrator mode.

    I need prefabs to continue, please help!
     
  2. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    507
    Hi @solar138,

    Have you tried closing Unity, deleting the Temp and Library folders, open Unity and trying again?

    Maybe there is some corrupted file on such locations.


    I hope this helps!