Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Awaiting to a filtered ReactiveProperty #372

Closed
kordian-kowalski opened this issue Jul 14, 2022 · 1 comment
Closed

Awaiting to a filtered ReactiveProperty #372

kordian-kowalski opened this issue Jul 14, 2022 · 1 comment

Comments

@kordian-kowalski
Copy link

kordian-kowalski commented Jul 14, 2022

In my game I have a ReactiveProperty<Vector3Int> pickedCell (from the UniRx package) that is written to when a cell on a grid is clicked on by the player.

Awaiting it directly works as I would expect:

var cell = await pickedCell;
Debug.Log(cell); // Works!

However if I filter the events in any way - even a dummy one like here:

var cell = await pickedCell.Where(c => true);
Debug.Log(cell); // Never executes

The value is never returned.

Am I doing something wrong here?

@kordian-kowalski
Copy link
Author

Actually it seems like more of a UniRx issue, posting it there:
neuecc/UniRx#517

@kordian-kowalski kordian-kowalski closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant