Search Issue Tracker
By Design
Fixed in 2019.3.X, 2020.1.X
Votes
0
Found in
2019.3.0a1
2019.3.4f1
2020.1
2020.2
Issue ID
1226928
Regression
Yes
[Asset Database V2] GameObjects and Prefabs lose references to Assets when Assets are moved to a different folder
How to reproduce:
1. Open the user's project
2. Create a new script in Project Browser
3. Create a new GameObject
4. Attach the created script to the GameObject
5. Move the created script to the 'Script' folder
Expected result: GameObject does not lose the reference to the script
Actual result: GameObject loses reference to the script
Reproducible with: 2019.3.0a1, 2019.3.6f1, 2020.1.0b2, 2020.2.0a3
Not reproducible with: 2017.4.38f1, 2018.4.19f1, 2019.2.21f1
Note: Bug introduced with Asset Database V2 which was introduced in 2019.3, the bug is not reproducible when switching Asset Database to V1. The bug only appears with GameDevHQ filebase installed, deleting it (found in Assets -> Asset Packs folder) fixes the bug.
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
- "Curve" window workspace doesn't update the scale to match the selected curve preset unless reopened
- StackOverflowException occurs and tests fail to load when the Test Runner window is opened while System.Windows.Forms.dll and System.Deployment.dll are present in the project
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
Resolution Note (2020.2.X):
Basically what happens is, in v2 the user is responsible for moving the .meta file of an asset(warning is logged), and in v1 we patch up metadata and move the file in the following refresh. The complexity of this patching process meant that we decided not to do the same for v2.