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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

My first kart minigame's AI don't work properly on WebGL

Discussion in 'WebGL' started by bingkongmaster, May 1, 2020.

  1. bingkongmaster

    bingkongmaster

    Joined:
    Apr 30, 2020
    Posts:
    1
    dtheirl and Hydrias like this.
  2. Hydrias

    Hydrias

    Joined:
    Mar 30, 2020
    Posts:
    1
    Gantrex and dtheirl like this.
  3. dtheirl

    dtheirl

    Joined:
    Jun 2, 2020
    Posts:
    1
    Same problem, works locally, but does not work after building and running, can anyone help solve this problem?
     
    Gantrex likes this.
  4. WizzGames

    WizzGames

    Joined:
    Sep 16, 2020
    Posts:
    4
    Same problem. It's really annoying
     
  5. Seydjinn

    Seydjinn

    Joined:
    Nov 3, 2020
    Posts:
    3
    Damn same issue. we must have missed something in the build setup.
     
  6. froschs

    froschs

    Joined:
    Aug 19, 2019
    Posts:
    2
    Same...
     
  7. froschs

    froschs

    Joined:
    Aug 19, 2019
    Posts:
    2
    Solved by Seydjinn... see Forum Unity
    https://forum.unity.com/threads/ml-agents-dont-work-in-web-gl-build.898586/
    or
    Karting Creator group - https://connect.unity.com/g/karting-creators

    Thanks!

    Three things you've got to do :
    1. Package Manager > Barracuda > Update to version 0.6.3 (Works with WebGL)
    2. Search for KartGame.ai in the Project window (should be the KartGame.ai import settings file) > Enable WebGL in the Platforms section
    3. Search for MLAgentsToolkit in the Project window (once again, should show as Import Settings) > Enable WebGL in the Platforms section This should sort it out, as you just need Unity to be allowed to build the ML agents for WebGL.