Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2019.2.0a1
2019.3.0a1
2019.3.0b1
2020.1.0a1
Issue ID
1179661
Regression
No
AssetDatabase.FindAssets("t:type") does not find scriptable objects when the referenced script is renamed
How to reproduce:
1. Open the attached project ("case_1179661-Asset_Database_Version_2_Issue.zip")
2. Select Issue Demo/Find Animal Assets from Menu
3. Notice in the console that 3 assets were found
4. Change the name of "Animal.cs" script and change the class name accordingly inside the script
5. Change line 9 of "FindAnimalAsset.cs" to reflect the changes from step 4
6 Select Issue Demo/Find Animal Assets from Menu
7. Inspect the console
Expected results: 3 assets are found
Actual results: No assets are found
Reproducible with: 2017.4.32f1, 2018.4.8f1, 2019.2.4f1, 2019.3.0.0b1, 2020.1.0a2
Notes:
1. This issue reproduces on both Version 1 and Version 2 of Asset Pipeline modes
2. Reimporting the scriptable objects which have the reference to the renamed script fixes the issue
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
- [Linux] Cannot reorder GameObjects in the Hierarchy when the AI Assistant package is installed
- [iOS] Text Input field stops receiving changes when the "Cancel" button is used on the soft keyboard
- [WebGPU] URP RenderGraph RenderPass doesn't clear textures
- Query Builder items display raw code style names instead of human readable labels in search field
- “+” button does nothing and has no functionality when clicked in Human Template "Bone Template" list
Resolution Note:
Due to low severity we're not fixing this issue. If you believe this case is an important bug, please respond and we'll take a look again