Search Issue Tracker
Won't Fix
Votes
1
Found in
2021.2.0a7
2021.2.3f1
2022.1
2022.2
Issue ID
1383167
Regression
Yes
Sprites references are not set back when deleting and re-creating Visual Files that are sliced
Reproduction steps:
1. Open the attached project "1383167.zip"
2. Open Assets > Scenes > SampleScene
3. Save Assets > "vents" asset to your device
4. Delete Assets > "vents"
5. Import duplicate "vents" image to the Assets folder
6. Select Assets > "vents"
7. In the Inspector change Sprite mode to Multiple
8. Open Window > 2D > Sprite Editor and slice "vents"
9. Observe results in Scene View
Expected result: Sprite references are set back
Actual result: Sprite references are missing
Reproduced with: 2021.2.0a7, 2021.2.9f1, 2022.1.0b5, 2022.2.0a3
Not reproduced with: 2019.4.35f1, 2020.3.27f1, 2021.2.0a6
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
- Crash on __pthread_kill when initializing Vuplex WebView while entering the Play Mode
- Crash on FindSurface when adding a custom Renderer Feature to a 2D Renderer Data Asset
- [Android] [Vulkan] [UI Toolkit] Application crashes when the device is rotated when it has UI Toolkit TextField on Vulkan devices
- Crash on DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate when opening a specific project
- Crash on memset_repstos when pressing a UI button while in Play Mode
Resolution Note:
Once you delete an asset inside Unity, Unity stops tracking that asset and will not promise to keep any references or settings for that asset. If an asset is later added with the same name, it should be considered a coincidence that any references remains from a previously deleted asset.
Our suggested approach is that you replace an image file, rather than deleting and adding it again, to make sure all settings and references are kept intact inside Unity.