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
  3. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here:
    Dismiss Notice
  4. 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
  5. Join us on Thursday, September 29, for a day with Unity's SRP teams here on the forum or on Reddit, and discuss topics around URP, HDRP, and the Scriptable Render Pipeline in general.
    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.

Bug Action Precondition "list contains" throws error

Discussion in 'AI & Navigation Previews' started by Gnarf, Nov 27, 2020.

  1. Gnarf


    Jul 29, 2015
    To reproduce :

    - Create new project (Unity 2020.1.12f1).
    - Add AI Planner 0.2.4-preview.3.
    - Create semantic trait "IntList" with List->Integer property "List"
    - Create semantic trait "IntNumber" with Integer property "Number"
    - Create ai planner action "IsNumberInList" with IntList and IntNumber parameters
    - Create precondition with "contains" or "!contains" operator between IntList and IntNumber
    - Create ai planner problem "IntProblem" containing IsNumberInList
    - Run Semantic -> Traits -> Build generates

    error CS1612: Cannot modify the return value of 'DynamicBuffer<IntList>.this[int]'
    because it is not a variable

    Attached Files:

    Last edited: Nov 27, 2020
  2. mplantady_unity


    Unity Technologies

    Jun 19, 2019
    Thanks for the bug report, I will look into that!