Does .WithChangeFilter<T>() work with IBufferElementData structs?

If not, how can I have a ForEach job run only when a DynamicBuffer is written to?

It didn’t at one point but I believe it does now though I haven’t tested to confirm.

Note WithChangeFilter doesn’t guarantee the component has actually changed, you need to verify this, just that there was a query with write enabled for it since you last did the query.

1 Like

Thanks, I’ll trust your word and go ahead for the refactor. Fortunately nothing incorrect will happen if an unnecessary query goes through, so if WithChangeFilter does pick up IBufferElementData then all is well