Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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.