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
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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: