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. Dismiss Notice

Question How can I directly interact with my Editor using python API?

Discussion in 'ML-Agents' started by DayBeha, Feb 24, 2021.

  1. DayBeha

    DayBeha

    Joined:
    May 16, 2020
    Posts:
    6
  2. celion_unity

    celion_unity

    Unity Technologies

    Joined:
    Jun 12, 2019
    Posts:
    289
    Hi @DayBeha,
    Have you gone through the tutorial here to get an idea of how to set up an Agent? I would recommend getting comfortable with that first before trying the Python API.

    I think that wording in the documentation might be a bit vague; the Python API that we provide allows you to interact with Agent instances that are either in the editor or a build executable, but it doesn't let you control the editor directly.
     
  3. DayBeha

    DayBeha

    Joined:
    May 16, 2020
    Posts:
    6

    Hi @celion_unity
    I have made my Learning Environment,and run "mlagents-learn config/rollerball_config.yaml --run-id=RollerBall" properly. It does make sense. But the Python API just have no response.
     
  4. DayBeha

    DayBeha

    Joined:
    May 16, 2020
    Posts:
    6
    I thought I will get the same response as the command do:


    But I got the Error post above
     
  5. darkkingace

    darkkingace

    Joined:
    Apr 11, 2019
    Posts:
    2
    did you fix it, I get the same thing, what do I do?
     
  6. darkkingace

    darkkingace

    Joined:
    Apr 11, 2019
    Posts:
    2
    Its not helpful man, just explain why the api does not connect with the editor, everything in unity is ready and also works well using unity with cmd directly.