Search Issue Tracker

Fixed in pre 0.50.0

Votes

1

Found in [Package]

0.8.0-preview.8

Issue ID

1225101

Regression

No

Singleton Entity no longer accessible when "in" parameter modifier is used in ForEach in conjuction with WithChangeFIlter

Package: Entity Component System (ECS)

-

Steps to reproduce:
1. Open the attached project (case_1225101.zip)
2. Enter Play Mode
3. Open the Console window (Window > General > Console)

Expected result: No exception is thrown and all methods are able to access the Singleton Entity
Actual result: Singleton Entity is no longer accessible and "InvalidOperationException: GetSingleton<TestComponent>() requires that exactly one TestComponent exists but there are 0." is thrown

Reproduced in: 0.6.0-preview.24 (2019.3.9f1, 2020.1.0b5), 0.8.0-preview.8 (2020.1.0b5, 2020.2.0a7)
Cannot test with: 0.5.1-preview.11 and below (certain functionality not available)

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.