Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. 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:
    984
    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:
    32
    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:
    984
    Hi, thanks for the tutorial vid!
    Hope unity can fix these kinds of bugs...
     
    JohnnyTurbo likes this.