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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

AI Planner - "ArgumentException: A component with type... has not been added to the entity"

Discussion in 'AI & Navigation Previews' started by haraldger, Jan 20, 2022.

  1. haraldger


    Nov 5, 2021

    I am currently using the AI Planner for a project creating an RTS game. I have had great difficulty using the package due to many inexplicable errors, and this latest is one that I have been unable to overcome.

    I get the following error when trying to run the plan:
    "ArgumentException: A component with type:BuildBarracksFixupReference has not been added to the entity."

    Here are screenshots of my actions and plans so far. This plan has successfully executed previously, but it stopped working without (as far as I know) me changing anything about it.



    The Buildable trait and the BuildingType enum has also been defined in a simple manner. Finally here is my configuration


    If anybody is able to help me regarding what this error means and what I can do about it, I'd be eternally grateful.

    Thank you in advance.

    Attached Files: