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
- UnsafeUtility.Malloc uses 4MB when creating an empty NativeQueue
- Custom Function Node's Label and Name Field is not limited to the Graph Inspector's bounds
- A 404 page is opened when selecting "Open Documentation" on the Emission Node in Shader Graph
- "Kernel 'KMain' not found" errors appear when using the "Screen Space Reflections" Post-Processing effect in a specific WebGL project
- Game View turns black, Scene View turns grey, Console error NullReferenceException when Wireframe is turned on because the DecalGBufferRenderPass references a non existent GBuffer
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