Unity Issue Tracker - No error is being logged when using Lambda expression with Entities.ForEach
Closed
ECSB-83
No error is being logged when using Lambda expression with Entities.ForEach
Package: Entity Component System (ECS)
Won't Fix
0.51.X
0.50.X
We're only fixing 0.51 bugs in special cases - if this bug is reproducible in a supported version 1.0.0, we will address it there.
How to reproduce:
1. Open the user-attached project
2. Add the Entities package to the project (Window → Package Manager → + → Add package from git URL)
3. Enter Play Mode
Expected result: “error DC0013: Entities.ForEach Lambda expression writes to captured variable ‘currentIslandIdSingleton' that is then read outside. This is only supported when you use .Run().” is thrown
Actual result: Expected error is not thrown
Reproducible with: 0.50.1-preview.2 (2020.3.38f1), 0.51.1-preview.21 (2020.3.38f1, 2021.3.8f1)
Couldn’t test with: 0.17.0-preview.42 - Deprecation of version gets hard-set to 0.50.1-preview.2
Reproduced on: macOS Monterey 12.0.1
Note: To add the Entities package, when doing step 2 in the field that shows up write “com.unity.entities”
Prioritise and Follow this issue
Have a workaround or additional info about this issue?