Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Reinforcement Learning Penguins Course: SİMPLE IDE PROBLEM

Discussion in 'ML-Agents' started by ugu_, Jun 9, 2020.

  1. ugu_

    ugu_

    Joined:
    May 12, 2020
    Posts:
    2
    İN UNİTY EDİTOR I GET THİS ERROR:

    Assets\Penguin\Scripts\PenguinArea.cs(3,7): error CS0246: The type or namespace name 'MLAgent' could not be found (are you missing a using directive or an assembly reference?)

    İN MY PenguinArea.cs FİLE ERROR LOOKİNG LİKE THİS
    using MLAgent;

    2. ERROR:
    Assets\Penguin\Scripts\PenguinAgent.cs(4,29): error CS0246: The type or namespace name 'Agent' could not be found (are you missing a using directive or an assembly reference?)

    İN MY PenguinArea.cs FİLE ERROR LOOKİNG LİKE THİS
    using UnityEngine;
    using MLAgent;

    public class PenguinAgent : Agent
    {
     
  2. jadaracquel

    jadaracquel

    Joined:
    Jan 11, 2020
    Posts:
    1
    Change it to
    using Unity.MLAgent;
     
  3. ugu_

    ugu_

    Joined:
    May 12, 2020
    Posts:
    2
    thanks for reply