Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2018.4.X, 2019.4.X, 2020.1.X, 2020.2.X
Votes
0
Found in
2018.4
2020.1.6f1
2020.2
Issue ID
1278834
Regression
No
AssetDatabase.AssetPathToGUID() returns a valid GUID for assets that were deleted
How to reproduce:
1. Open user-submitted project (AssetDatabaseV2Test.zip)
2. From the Menu bar select Test > RunTest
3. Note the GUID in the Console window
4. Delete the asset Cube.prefab
5. Select the Test > RunTest again
Expected result: no GUID is returned since Cube.prefab has been deleted
Actual result: old GUID is returned
Reproducible with: 2018.4.27f1, 2019.4.11f1, 2020.1.6f1, 2020.2.0b3
Notes:
After restarting the Editor the expected empty GUID is returned
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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Resolution Note (fix version 2021.1):
Fixed in 2021.1.0a7 - new AssetPathToGUIDOptions parameter introduced to AssetPathToGUID to allow selecting whether recently deleted assets are included