Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Showcase #tips_cmd time scale control command

Discussion in 'ML-Agents' started by Sab_Rango, May 3, 2021 at 10:55 AM.

  1. Sab_Rango

    Sab_Rango

    Joined:
    Aug 30, 2019
    Posts:
    70
    Hello !
    After a feedback from the developers, I finally found the python cmd to control time-scale in the editor .


    " --time-scale=1 --capture-frame-rate=0 "

    So after adding this command

    [mlagents-learn saymyconfig.yaml --time-scale=1 --capture-frame-rate=0 --run-id=saymyid01]

    the editor time scale sets into 1.
    Then the models will be trained in the same time scale that the usual built models run in the play mode.



    If only cmd " --time-scale=1" was called, the editor time scale sets into 1.
    But realistically float Time.deltatime will stay about 3x time scale.
     
unityunity