Unity Issue Tracker - Script Components lose references when importing a package with scripts that have the same name
Closed
UUM-19370
Script Components lose references when importing a package with scripts that have the same name
Unity: Packman
As Designed
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
The TestScript.cs file existing in the project has a different GUID then the one imported from the .unitypackage. Test game object script components references are no longer found since GUIDs are different.
How to reproduce:
1. Open the attached project “ReferenceBreak.zip“
2. Open Scene “SampleScene“ (Assets/Scenes)
3. Import the attached package “NewAssetVersion.unitypackage“
4. Select the “Test“ GameObject in the Hierarchy
Expected result: Script Components on the “Test“ GameObject are updated
Actual result: The “Test“ GameObject has missing Script Component references