Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Question Environment Setting during running

Discussion in 'ML-Agents' started by yangpengzhi, Nov 22, 2021.

  1. yangpengzhi

    yangpengzhi

    Joined:
    Nov 22, 2021
    Posts:
    15
    Hi!

    I'm using gym-unity to train an agent's policy. But I'm wondering whether it's possible that I change the env's properties like ground friction, fog's thickness for each episode during runtime?

    Thank you!
     
  2. gft-ai

    gft-ai

    Joined:
    Jan 12, 2021
    Posts:
    44
  3. yangpengzhi

    yangpengzhi

    Joined:
    Nov 22, 2021
    Posts:
    15
    Thank you! I'll take a look
     
  4. yangpengzhi

    yangpengzhi

    Joined:
    Nov 22, 2021
    Posts:
    15
    Actually, the fog property has been defined in shaders. Is it possible to modify it during training for each episode with python?