#System Inspector doesn't show Disabled<T>

1 messages · Page 1 of 1 (latest)

barren trail
#

Example of queries

            this.useEnableQuery = SystemAPI.QueryBuilder()
                .WithAllRW<EffectUses>()
                .WithAll<Active>()
                .WithDisabled<ActivePrevious>()
                .Build();
            
            this.useDisableQuery = SystemAPI.QueryBuilder()
                .WithAll<EffectUses, ActivePrevious>()
                .WithDisabledRW<DestroyEntity>()
                .WithDisabled<Active>()
                .Build();

Attached picture shows what it shows. I would expect WithDisabled[RW]<T> to also appear in this window as it's a critical part of the query. (Though I think all WithNone optiosn should also show)

barren trail
#

Looking at source code, it also seems to leave out Present components, so I propose adding those as well

#

The fix is just

#

now looks like this

#

though I think more polish could be used to say they are actually disabled, though I think that would require a bit more work

hardy parcel
#

Would indeed be nice to see the None, Present, Disabled, All respectively. Also some support for systems that use the queries multiple times e.g. SmoothRigidBodiesGraphicalMotion only shows latest queried entities.

barren trail
#

actually let me see what throwing none/etc looks like

#

i believe from source they would appera as Exclude

#

would just become
desc.All.Concat(desc.Any).Concat(desc.Disabled).Concat(desc.Present).Concat(desc.None).Concat(desc.Absent)

#

then

#

yeah works fine

#

(top query has the WithNone)

#

shows as an exclude

#

would be nicer if they were differentiated somehow, but its better than nothing

#

still gives a decent picture