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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question I want to know about BehaviorParameters.

Discussion in 'ML-Agents' started by wglxxx, May 14, 2020.

  1. wglxxx

    wglxxx

    Joined:
    Oct 27, 2018
    Posts:
    6
    hello,I tried to understand the meaning of BehaviorParameters.VectorActionDescriptions.
    (src comment: The list of strings describing what the actions correspond to.)
    In the hierarchy,I can't change the value.
    If modified by code:
    BehaviorParameters.BrainParameters.VectorActionDescriptions = null; ->train error
    BehaviorParameters.BrainParameters.VectorActionDescriptions = new string[n]; ->train error
    BehaviorParameters.BrainParameters.VectorActionDescriptions = new string[1]{""}; ->working
    BehaviorParameters.BrainParameters.VectorActionDescriptions = new string[n]{"1","2",....}; ->working

    Please tell me the details to use the determined value.
     
  2. awjuliani

    awjuliani

    Unity Technologies

    Joined:
    Mar 1, 2017
    Posts:
    69
    Hello,

    VectorActionDescriptions are a deprecated part of the API. Can you maybe share more about what you would like to use them for?
     
  3. wglxxx

    wglxxx

    Joined:
    Oct 27, 2018
    Posts:
    6