Hi everyone, I’ve been reading all the opened topics on this issue for some days but I wasn’t able to get to any conclusion yet (besides me guessing that this is not supported).
I have a sample IJobEntity like this one:
[BurstCompile]
[WithDisabled(typeof(MyEnableableComponent))]
struct SampleJob : IJobEntity
{
void Execute(Entity entity, EnabledRefRw<MyEnableableComponent> enableable, ...)
{
...
}
}
This one works fine.
I’m however trying to transition to an IAspect by doing something like this:
struct MyAspect : IAspect
{
...
public Entity Entity;
public EnabledRefRW<MyEnableableComponent> Enableable;
}
[BurstCompile]
[WithDisabled(typeof(MyEnableableComponent))]
struct SampleJob : IJobEntity
{
void Execute(MyAspect myAspect)
{
...
}
}
This is never triggered, potentially because WithDisabled is not applied to aspects.
The only way to make this working was to add [Optional] to the EnabledRefRW in MyAspect, however I feel that this kind of defeats the purpose of query filtering since it would iterate on all the entities regardless of the state of the enableable component.
Am I missing something?