In latest ECS EntityQuery::AddOrderVersionFilter() function for some reason apply this filter to ANY other query with same matches. NOTE, everything is fine when you are using EntityQueryDesc, but it break (start to apply filters to similar queries) when i switched to EntityQueryBuilder.
Its the same with or without BurstCompile. For now, i switched back to EntityQueryDesc so there is a workaround but still would be nice to fix this
Working example (even works when i use the same EntityQueryDesc, as it should):
var queryBuilder = new EntityQueryDesc()
{
All = new ComponentType[] { typeof(NetworkEntityTag), typeof(IUIDData) },
Options = EntityQueryOptions.IncludeDisabledEntities,
None = new ComponentType[] { typeof(LockStepTickData) }
};
netStructChangeQuery = state.EntityManager.CreateEntityQuery(queryBuilder);
netStructChangeQuery.AddOrderVersionFilter();
netEntityQuery = state.EntityManager.CreateEntityQuery(queryBuilder);
Example where its AddOrderVersionFilter set to both netEntityQuery and netStructChangeQuery
netStructChangeQuery = new EntityQueryBuilder(Allocator.Temp)
.WithAll<NetworkEntityTag, IUIDData>()
.WithOptions(EntityQueryOptions.IncludeDisabledEntities)
.WithNone<LockStepTickData>()
.Build(ref state);
netStructChangeQuery.AddOrderVersionFilter();
netEntityQuery = new EntityQueryBuilder(Allocator.Temp)
.WithAll<NetworkEntityTag, IUIDData>()
.WithOptions(EntityQueryOptions.IncludeDisabledEntities)
.WithNone<LockStepTickData>()
.Build(ref state);
NOTE, if i will alter a query (one or another) by just i bit (add more WithAll filters, etc), everything will start to work again.