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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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.