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

How to use timescale in gym_unity?

Discussion in 'ML-Agents' started by silverair, Apr 5, 2020.

  1. silverair

    silverair

    Joined:
    Jun 20, 2015
    Posts:
    5
    Hi all,
    I studied ML-Agents yesterday.
    ML-Agents really great.

    I spent a lot of time studying, but the results were very good.
    But I have a question.

    When using the command line, I can add --time-scale 1~100 to control the speed.
    But when I was studying gym_unity, I found that it was running at a normal speed.

    In the example ipynb file,
    UnityEnv seems to have no parameters for control the speed.

    Can anyone give me some help?
    Thanks!
     
  2. awjuliani

    awjuliani

    Unity Technologies

    Joined:
    Mar 1, 2017
    Posts:
    69
    silverair likes this.
  3. sohojoe

    sohojoe

    Joined:
    Feb 13, 2015
    Posts:
    21
    I had the same issue and tried sidecar over the weekend but was not able to get it to work. I'm using ml-agents 14.1
     
  4. silverair

    silverair

    Joined:
    Jun 20, 2015
    Posts:
    5
    In unity's discord , some one tell me the parameter "--time-scale 20" just simply set Time.timeScale = 0;
    so I try to hard code in script , not use python to control it.

    If side channel not work for you, maybe you can try this.
     
    sohojoe likes this.