Search Issue Tracker
Fixed in pre 0.50.0
Votes
0
Found in [Package]
0.6.0
Issue ID
1236141
Regression
No
[Entities] Error DCICE001: Entities.ForEach Lambda expression uses something from its outer class
Steps to reproduce:
1. Add this script to project with Entities installed:
using Unity.Entities;
public class NewBehaviourScript : SystemBase
{
private float timer = 3;
protected override void OnCreate()
{
Entities.ForEach((Entity e, int entityQueryIndex) =>
{
timer = 50;
}).Schedule();
}
protected override void OnUpdate()
{
throw new System.NotImplementedException();
}
}
2. You'll get the error in console:
"error DCICE001: Entities.ForEach Lambda expression uses something from its outer class. This is not supported. Seeing this error indicates a bug in the dots compiler. We'd appreciate a bug report (About->Report a Bug...). Thnx! <3"
Expected: No errors, or compiler not allowing that code to pass
Actual: Error told me to send a report, so I did.
This was reproduced on Entities Package version 0.6.0, 0.9.1; 0.11.1-preview4
(Can't be reproed with same code earlier than 0.6.0)
Unity version 2019.4.1f1 (e6c045e14e4e), 2020.1.0b4, 2020.1.0b12
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Profiler does not profile after building the Project with Autoconnect Profiler Option enabled
- Editor slows down when selecting a script with the [HideInInspector] attribute on arrays with dynamic values
- [XR] Custom Pass not working as intended with Single Pass Instanced when XR is initialized after runtime start
- NullReferenceException floods the Console when Previewing Probe Adjustments before Probe Volume Baking is finished, Prove Volume Baking hangs
- Managed Reserved Memory is adding up every time when a custom asset is uploaded into the scene
Add comment