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 - 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


    Oct 6, 2021
    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


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