Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. 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

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