Search Issue Tracker
Won't Fix
Won't Fix in 2023.2.X
Votes
6
Found in
2020.3.42f1
2021.3.15f1
2022.1.23f1
2022.2.0f1
2023.1.0a23
2023.2.0a1
Issue ID
UUM-21078
Regression
No
"DirectoryNotFoundException: Could not find a part of the path" thrown when creating a new C# Script in a path longer than 260 characters
How to reproduce:
- Create a new Unity project
- Create a path longer than 260 characters in the Assets folder
- Create a new C# Script in that folder
Expected results: The C# Script is created
Actual results: "DirectoryNotFoundException: Could not find a part of the path" thrown in the Console window
Reproducible with: 2020.3.42f1, 2021.3.15f1, 2022.1.23f1, 2022.2.0f1, 2023.1.0a23
Reproducible on: Windows 10
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- VFX Graph Documentation dropdown button does nothing when clicked on the right side
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
Resolution Note:
Unfortunately, we won't be able to fix this issue: Even if we manage to find all potentially problematic usage of CreateFile APIs in our own codebase, Unity Editor actually communicates with many tools we don't have control of (e.g. platform-specific compilers etc.). So we will never be able to fully support long paths on Windows.
Resolution Note (2023.2.X):
Unfortunately, we won't be able to fix this issue: Even if we manage to find all potentially problematic usage of CreateFile APIs in our own codebase, Unity Editor actually communicates with many tools we don't have control of (e.g. platform-specific compilers etc.). So we will never be able to fully support long paths on Windows.