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 - Limitation on number of objects with given Trait? (255)

Discussion in 'AI & Navigation Previews' started by unity_1Y-E-WSORWn1GQ, Feb 1, 2022.

  1. unity_1Y-E-WSORWn1GQ

    unity_1Y-E-WSORWn1GQ

    Joined:
    Oct 6, 2021
    Posts:
    1
    I seem to be encountering issues when using the AI Planner if I have more than 255 (Byte.MaxValue) objects with the same Trait attached. It looks like all the objects are loaded in StateData.TraitBasedObjects, however past index 255 the specific trait index points (e.g.) 0-60 instead of over 255 (0-60 being populated by other objects). The values in the trait buffer beyond 255 are not set.

    Is this a known limitation or am I misunderstanding something?

    NB I am using AI Planner 0.2.3 due to restriction on which Unity Editor I can use.
     
  2. vx4

    vx4

    Joined:
    Dec 11, 2012
    Posts:
    171
    stop using AI Planner ,is no longer in active develpment anymore and never was.