Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2020.3.X, 2021.1.X
Votes
0
Found in
2020.3.1f1
2021.1.0a5
Issue ID
1334082
Regression
Yes
Reimporting a sample deletes all non-empty parent folders recursively until the project folder.
Repro steps:
1. Install "Input System" package.
2. Import 2 of the available samples.
3. Create a new C# script file inside each folder from the samples folder up to the Assets folder.
4. Click "Import again" in the Package Manager UI.
Expected Result:
The sample is reimported correctly and no other files are affected.
Actual Result:
The Assets folder is deleted with any other files inside the project folder. There is a message in the console saying "Cannot delete directory <path to your project directory>". Unity is frozen while trying to fix all the missing files. Eventually, the editor starts to work again, but all deleted files were lost.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
Add comment