Search Issue Tracker

Duplicate

Votes

0

Found in [Package]

0.50.0-preview.24

Issue ID

1417347

Regression

No

DOTS Entities throws a compilation error when field variable is used in GetComponent inside ForEach loop

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the user's attached project "Dots compiler bug.zip"
2. Observe the Console window

Expected result: No error occurs
Actual result: Error "System.NullReferenceException: Object reference not set to an instance of an object." occurs

Reproducible with: 0.50.0-preview.24 (2020.3.33f1)

  1. Resolution Note:

    Fixed in 0.50.1-preview.2

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.