Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Build error: DirectoryNotFoundException: Could not find a part of the path

Discussion in 'Windows' started by Aceasum, Jun 18, 2022.

  1. Aceasum

    Aceasum

    Joined:
    Sep 24, 2019
    Posts:
    2
    Hello, I've tried searching online for help with this, but I can't seem to find a solution. I am new to using Unity so bare with me as I'm a bit clueless.

    On trying to export my game to Windows, it fails on the error:
    DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Unity\Hub\Editor\2020.3.30f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations\win64_nondevelopment_mono\Data'.

    Yes, the gap in the path is present in the log, I don't know if that's relevant to the issue or if that's just a format issue on the log. Any ideas and suggestions would be appreciated!
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,517
    Can you show the contents of "C:\Program Files\Unity\Hub\Editor\2020.3.30f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations"? How did you install the editor? This suspiciously looks like corrupted installation.
     
  3. Aceasum

    Aceasum

    Joined:
    Sep 24, 2019
    Posts:
    2
    Is there a way to access them in Unity? In Windows file manager, there are 7 folders:
    upload_2022-7-4_9-28-38.png
    It appears they all have stuff in them.

    I don't remember how it was I installed the editor. If it's a corruption then, ought I reinstall it?
     
    Last edited: Jul 4, 2022
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,517
    There are indeed folders missing from there. I don't know how or why. I would suggest reinstalling Unity.