Search Issue Tracker

Won't Fix

Votes

3

Found in

5.4.0b11

Issue ID

782915

Regression

No

AssetDatabase is not updated after renaming script which is referenced in an asset

--

-

Steps to reproduce:
1. Download and open project
2. Execute Mainmenu/BugReport/Log FruidConfig count (typo) - Notice it prints "4 FruidConfig's found" to the Console window, which is correct
3. Rename Scripts/FruidConfig.cs to Scripts/FruitConfig.cs
4. Open Scripts/FruitConfig.cs, rename the class from FruidConfig to FruitConfig and save
5. Execute Mainmenu/BugReport/Log FruitConfig count - Notice it prints "0 FruitConfig's found" to the Console window, which is wrong.

Workaround:
Reimport assets containing folder "Fruits".

Notes:
Using AssetDatabase.FindAssets("t:<class>") for outputting all the assets count value referencing to that class, outputs wrong count value of all the assets referencing to that class.

Reproduced with: 5.2.4f1, 5.3.4p1, 5.4.0b13

  1. Response avatar

    Resolution Note:

    Hi there,

    We really appreciate your contribution to the Unity product. Thank you for reporting this issue. We take every case submitted to us seriously by investigating the impact on you, our customer, as well as the impact it may have on the engineering and experience of our product.

    This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this fix for the time being. We understand that this will cause problems for some users, and so may address in a future version.

    Unity QA Team

Comments (1)

  1. 495e55a1ab7af58b9c2dbec7b81135f1?d=mm

    Peter77

    Aug 24, 2019 16:47

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.