[Worker0] Exception thrown during SubScene import: System.ArgumentException: Mechabit.NewZombieTag m

I’m adding an empty IComponentData as a tag on my zombies for initialisation.

[Worker0] Exception thrown during SubScene import: System.ArgumentException: Mechabit.NewZombieTag must already be filtered by ComponentSystemBase or ISystem

What does this error message mean and how do I fix it?

I’m looping through zombies as they spawn with this

foreach (var zombie in SystemAPI.Query<ZombieWalkAspect>().WithAll<NewZombieTag>())

Hey that code looks familiar :wink:

Seems to happen from time to time in the latest editor - try restarting the editor then clearing the entity cache (Edit > Preferences… then in the Preferences window go to the Entities section and click the Clear Entity Cache button)

Hi, thanks for the tutorial vid!
Hope unity can fix these kinds of bugs…

1 Like