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
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
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.