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

    haraldger

    Joined:
    Nov 5, 2021
    Posts:
    10
    Hello,

    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.
    upload_2022-1-20_10-47-38.png

    upload_2022-1-20_10-46-34.png

    upload_2022-1-20_10-47-1.png

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

    upload_2022-1-20_10-49-20.png

    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: