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. The 2022.2 beta is now available for testing. To find out what's new, have a look at our 2022.2 feature highlights.
    Dismiss Notice
Dismiss Notice
Submit bug reports tagged with #Beta2022Win_Unity when you encounter unknown issues while testing the 2022.2 betas for a chance to win a year of Unity Pro. For more information, have a look at our Beta Sweepstakes Announcement.

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:

unityunity