Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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:
    154
    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:
    154
    that'll work yh