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
- Unable to undo or redo color swatch changes when creating or deleting color swatches
- [Linux][Vulkan] Silent crash when tooltip appears while hovering over a label
- Material Properties are not preserved when overriding Shader using Render Objects
- Scene view flickers when both Scene and Game view are active and DX11 API is used with Gamma Color Space
- ZivaRT Player and ML Agents packages Deprecated label color differs from other Deprecated packages
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