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
  3. Dismiss Notice

Why does my game got weirded out or "buggy after I build and run the game? it was fine before

Discussion in 'Editor & General Support' started by slippersandsocks, Sep 25, 2020.

  1. slippersandsocks

    slippersandsocks

    Joined:
    Jan 31, 2020
    Posts:
    84
    What is happening? My script didn't change at all and it runs the game just as I wanted but after I switch platforms to webGL and build run the game (reference to the attachment for context), it went all buddy like my player suddenly is now stuck with the "dashing" animation and the speed doesnt slow down. It was like that at all before i switch platform and build run the game. I know there are others out there used to face such problem.. pls help me? or any advice?
     

    Attached Files:

  2. Kayntt

    Kayntt

    Joined:
    Sep 4, 2020
    Posts:
    5
    Switching to other platforms requires you to make changes to your game depending on the platform. Make sure you have done the necessary changes for your game to work on that platform. I haven't tried WebGL yet so I can't help much.
     
    Joe-Censored likes this.
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Most things just work no matter the platform, but individual platforms have their own limitations. WebGL for example is at the mercy of the web browser, how much performance and resources the web browser allows your game instead of your game having control, and many multithreaded or async operations in other platforms are run single threaded or blocking (not async) in WebGL. Platform limitations. I'd see if you can use the profiler against your WebGL builds and see if you are hitting performance issues, also look to see if you are getting any console errors from the build.