Hi,
Here’s how to reproduce the bug:
- Create a new project (tested on 2019.3.4f1)
- Import Entities package (0.10.0 preview 6)
- Create a script with the following code:
using Unity.Entities;
public class TestSystem : SystemBase
{
public void TheMethodThatCrashes<T>(T value) where T : struct, IComponentData
{
SetSingleton(value);
}
protected override void OnUpdate()
{
}
}
- Enter play mode
CRASH
The will be the editor’s last logged line:
- Assertion at …\mono\mini\method-to-ir.c:8462, condition `!mono_method_check_context_used (cmethod)’ not met