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 - 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:
    182
    stop using AI Planner ,is no longer in active develpment anymore and never was.