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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
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