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

Package: Entity Component System (ECS)

-

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)

  1. Resolution Note:

    There are no fixes planned for this Bug

  2. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.