Search Unity

Question 'ReacherRobot.OnActionReceived(float[])': no suitable method found to override

Discussion in 'ML-Agents' started by MonicaZ, Jan 13, 2024.

  1. MonicaZ

    MonicaZ

    Joined:
    Jan 13, 2024
    Posts:
    4
    Don't know why can't use OnActitonReceived(float[] vectorAction)
     

    Attached Files:

  2. smallg2023

    smallg2023

    Joined:
    Sep 2, 2018
    Posts:
    144
    it's not a float array anymore
    use
    OnActionReceived(ActionBuffers actions)
     
  3. MonicaZ

    MonicaZ

    Joined:
    Jan 13, 2024
    Posts:
    4
    is it right to put it this way?
     

    Attached Files:

  4. smallg2023

    smallg2023

    Joined:
    Sep 2, 2018
    Posts:
    144
    that'll work yh