Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X, 2021.2.X
Votes
0
Found in
2017.1.0b9
Issue ID
1351973
Regression
No
AssetDatabase.GetMainAssetTypeAtPath() sometimes loads objects when deriving their type, and leaves them loaded
Reproduction steps:
1. Open the project in the attached GetMainAssetTypeAtPath_Bug.zip
2. Run the test script using the menu item 'Test/Test'
Expected result: There is no red assertion failure, and the test finishes with 'Unloading asset...'
Actual result: A red assertion message will fire
"AssertionException: The asset should not be loaded after calling GetMainAssetTypeAtPath()!
Expected: False
But was: True"
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Add comment