Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

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

Discussion in '2022.2 Beta' started by spinaljack, Nov 3, 2022.

  1. spinaljack

    spinaljack

    Joined:
    Mar 18, 2010
    Posts:
    992
    I'm adding an empty IComponentData as a tag on my zombies for initialisation.

    Code (CSharp):
    1. [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

    Code (CSharp):
    1. foreach (var zombie in SystemAPI.Query<ZombieWalkAspect>().WithAll<NewZombieTag>())
     
  2. JohnnyTurbo

    JohnnyTurbo

    Joined:
    May 17, 2017
    Posts:
    42
    Hey that code looks familiar ;)

    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)
     
  3. spinaljack

    spinaljack

    Joined:
    Mar 18, 2010
    Posts:
    992
    Hi, thanks for the tutorial vid!
    Hope unity can fix these kinds of bugs...
     
    JohnnyTurbo likes this.