Cysharp / ObservableCollections

High performance observable collections and synchronized views, for WPF, Blazor, Unity.
MIT License
461 stars 36 forks source link

Support for firing add event for initial elements #20

Closed hadashiA closed 4 months ago

hadashiA commented 5 months ago

When an AttachFilter is executed, CollectionChangeEvent will not fire for elements that already exist. (WhenTrue/WhenFalse will fire)

If you are performing some destructive operation on a View (GameObject, etc.) with a CollectionChangeEvent, it may be bad if you cannot apply the same process to an already existing element.

So I added the following overload:

( It may not be a very pretty solution..)