I'm using Unity's Racing ECS example as a reference to make my own game. https://github.com/Unity-Technologies/ECS-Network-Racing-Sample/tree/master
I have a player spawner system (PlayerSpawnerSystem.txt) that is pretty much the same as in the example, but I get an AppendRemovedComponentRecordError (error_log.txt). Originally the methods were burst compiled, but the error happens regardless of whether the burst compile is on or off.
What is weird is that the execution is skipping lines (execution_order.png), like the engine wouldn't compile the code correctly. No compile errors in the project.
I have tried:
- Removed all csproj, sln etc files
- Reimporting the whole project
- Making a new file with a different class name, but otherwise the same code
- Regenerating project files (in Preferences->External Tools)
None of these have helped. When this error happened I was using Visual Studio 2022. I removed it and installed Rider 2024, but that didn't change anything.
Attached: error_log.txt, execution_order.png, PlayerSpawnSystem.txt
ECS multiplayer racing sample to showcase using Unity Entities and netcode with best practices - Unity-Technologies/ECS-Network-Racing-Sample