Search Issue Tracker

By Design

Votes

0

Found in [Package]

0.0.12-preview.24

Issue ID

1133331

Regression

No

[ECS] ComponentGroup.SetFilterChanged() does not filter unchanged components or buffers from the group

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the attached project ("case_1133331-setfilterchange-bug")
2. Open the repro scene ("SampleScene")
3. Enter Play Mode
4. Inspect the console

Expected results: one "Updating player from history..." can be seen for every "touched history" log
Actual results: the job which has "Updating player history" runs no matter what

Reproducible with: 2018.3.9f1, 2019.1.0b7, 2019.2.0a7
Reproducible Package versions:0.0.12-preview.24, 0.0.12-preview.27

Notes:
1. Couldn't test with 2017.4 because it does not support ECS
2. Couldn't test with earlier ECS versions because of package errors

  1. Resolution Note:

    This is expected behavior in the repro case. The repro case calls a system's Update() inside of another systems's Update(), which is going to throw off version number tracking. We've confirmed that if the two updates are called side by side in a SystemGroup, then the changed filter works as intended. We will investigate making this behavior clearer, but the behavior will not change.

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.