Search Issue Tracker

Fixed in 0.15.0-preview.16



Found in [Package]


Issue ID




Building a project using IL2CPP fails when passing a local field as a method parameter inside Entities.ForEach lambda expression

Package: Entity Component System (ECS)


How to reproduce:
1. Open the attached project (
2. Go to File -> Build and Run

Expected result: the project successfully builds using the IL2CPP Scripting Backend
Actual result: the project fails to build and IL2CPP related errors are thrown ('IL2CPP error for method')

Reproducible with: 0.10.0-preview.6 (2019.4.8f1), 0.11.1-preview.4 (2020.1.2f1), 0.14.0-preview.18 (2020.2.0a19)
Not reproducible with: 0.3.0-preview.4, 0.9.1-preview.15 (2019.4.8f1)
Could not test with: 2018.4.26f1 (getting other errors)

The issue is not reproducible when Mono is set as the Scripting Backend

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.