Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

DirectoryNotFoundException: Could not find a part of the path

Discussion in 'Editor & General Support' started by tawdry, Apr 21, 2018.

  1. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    I am getting the error DirectoryNotFoundException: Could not find a part of the path
    It usually points to a material or textures so i go and delete the offending materials and press play only for the error to pop up again and point at a new materials.so i delete those materials and the error pops up again pointing at some other materials or textures and so on . Never had this before any clue why this is happening?
     
  2. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Figured it out my folder's name was too long shortening it caused the error to cease
     
    tomekkie2 likes this.
  3. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    972
    Thank you.
    I also had this issue.
    Too many nested folders.
    I have just removed one in the chain and it fixed the problem immediately.
     
  4. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Glad to be of service some of these errors can be a real pain to figure out
     
    tomekkie2 likes this.
  5. bankrot6

    bankrot6

    Joined:
    May 28, 2019
    Posts:
    3
    Yes, this problem is related to a lot of subfolders. Thanks