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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Bug NullReference but was working fine before

Discussion in 'ML-Agents' started by Aliamba, Dec 21, 2022.

  1. Aliamba

    Aliamba

    Joined:
    Feb 29, 2020
    Posts:
    4
    I am making a simple agent that moves to a target. Everything was working fine. Then i tried making the setup a prefab so i can easily duplicate and have multiple agents at the same time. And now it does not work anymore. I get this error even if i remove all the duplicates agent and leave only one.

    console.png

    When i double click on the error it goes to line 30 in CommunicatorFactory.cs

    communicatorFactory.png

    If anyone know why please let me know.

    Thanks