Search Issue Tracker
Fixed
Votes
0
Found in [Package]
1.8.3
Issue ID
ADDR-1197
Regression
No
[Addressables] Asset address is changed when moving the asset from Resource group to other Packed group
Reproduction steps:
1. Open the attached project ("case_1238181-ResourcePath.zip")
2. Open the Addressable Groups window
3. Inside the window, select 'Cubes/ReproCube.prefab' asset and inspect its address
3. Make 'Resources/Cubes/ReproCube.prefab' addressable
4. When asked to move to 'resources_moved', select yes
5. Inspect the moved asset's address
Expected result: Asset address remains 'Cubes/ReproCube'
Actual result: Asset address becomes 'ReproCube'
Reproducible with: 2018.4.22f1, 2019.3.12f1, 2020.1.0b8, 2020.2.0a10
Reproducible with package versions: 1.2.3, 1.8.3
Note:
Changing the MoveAssetsFromResources method from:
-- var newAddress = Path.GetFileNameWithoutExtension(oldPath.Substring(index + 10));
to:
++ int length = oldPath.Length - (index + 10 + Path.GetExtension(oldPath).Length);
++ var newAddress = oldPath.Substring(index + 10, length);
fixes the issue
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Different colors are present when Alpha channel is unclamped
- Visual Effects Forums link leads to generic Unity Forums
- The dithering node returns a blocky effect when the Render Scale is set to some values below 1
- [Android Module] Unity double writes files in the "StreamingAssets" folder when they are deleted using "IPostGenerateGradleAndroidProject" after the Grandle project is generated
- IndexOutOfRangeException and InvalidOperationException when clicking on the HTML log in the Console
Add comment