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
- WebCamTexture does not set the requested resolution when used in WebGL
- Editor default Stylesheet/Matching Selector buttons in Debugger don't do anything
- Graphics.DrawMeshNow stops rendering Render Texture after a few frames when viewed in the Player
- New selector in Matching Selectors displays as on line -1 in debugger
- The first frames are skipped when playing a video
Add comment