Code below causes codegen corruption in some way. Resulting in Job2 creating a query that doesn't match entities with Enablable(true);Buffer1;Buffer2 components.
Simply commenting scheduling of Job1 causes Job2 to function properly again.
@brazen copper
public void OnUpdate(ref SystemState state)
{
new Job1().ScheduleParallel();
new Job2().ScheduleParallel();
}
[BurstCompile]
[WithDisabled(typeof(Enablable))]
[WithChangeFilter(typeof(Enablable))]
private partial struct Job1: IJobEntity
{
private void Execute(ref DynamicBuffer<Buffer1> filters)
{
}
}
[BurstCompile]
[WithAll(typeof(Enablable))]
private partial struct Job2: IJobEntity
{
private void Execute(ref DynamicBuffer<Buffer1> hits, ref DynamicBuffer<Buffer2> filters)