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
- SearchExpression strips quotes
- dSYM file is not created during macOS standalone build
- Project Settings panels disappear and do not repaint when entering Play Mode without reloading Domain
- Screen Space Decals ignore Rendering Layer Mask when using OpenGL Graphics API
- Crash on scripting_method_invoke when the Player is build before entering the Play mode in the Editor
Add comment