1.0.0-pre.44 changelog says:
Using
EnabledRefXX<T>andRefXX<T>wrappers on the same component in the same IJobEntity.Execute() method no longer throws compiler errors.
But 1.0.0-pre.65 throws this error:
error SGJE0017:
SetEnableableComponentJobhas duplicate components of same typeMyEnableableComponent. Remove all but one to fix.
Here is a snippet to reproduce this case:
public partial struct MyEnableableComponent : IComponentData, IEnableableComponent
{
public int value;
}
[BurstCompile]
public partial struct SetEnableableComponentJob : IJobEntity
{
public void Execute(
EnabledRefRW<MyEnableableComponent> enabledRefRW
, RefRW<MyEnableableComponent> refRW
)
{
enabledRefRW.ValueRW = true;
refRW.ValueRW.value = 5;
}
}