Search Issue Tracker
Won't Fix
Won't Fix in 1.0.X
Votes
1
Found in [Package]
1.0.0 - Entities
Issue ID
ECSB-229
Regression
No
Missing components exceptions appear when using CopyAndReplaceEntities
How to reproduce:
1. Download and open the attached project
2. Enter "Play" mode
3. Press X on the keyboard after a few seconds
4. Observe the console window
Expected outcome: No errors appear
Actual outcome: "ArgumentException: System.ArgumentException: The entity does not exist." errors appear
Reproducible with 2020.3.46f1 (0.51.1-preview.21), 2021.3.21f1 (0.51.1-preview.21), 2022.2.11f1 (1.0.0-pre.47), 2023.1.0b8 (1.0.0-pre.47), 2023.2.0a6 (1.0.0-pre.47)
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
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- The Shortcuts window cannot be docked when it is invoked from the Shortcut Helper Bar
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note:
There are no fixes planned for this Bug
Resolution Note (1.0.X):
EntityManager.CopyAndReplaceEntitiesFrom is unfortunately making a series of assumptions that fundamentally prevent this function from ever working in the general case. And recent changes in the way entities are allocated made it even more difficult to use properly. So we have decided to deprecate this function. There is just no way it would ever deliver on what it was supposed to do.