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.

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: