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

game is workin good in editor but when i build game,its doesnt work correctly

Discussion in 'Editor & General Support' started by Keen59, Sep 7, 2020.

  1. Keen59

    Keen59

    Joined:
    Mar 21, 2020
    Posts:
    5
    hello everyone,i makin a survival game but when i build game mechanics doesnt work correctly help me pls
     
  2. SGstevenOMG

    SGstevenOMG

    Joined:
    Sep 27, 2020
    Posts:
    1
    Hello guys im making a game it’s working well but when i build it all of the objects get invisable please if u know what to do tell me
     
  3. DreamPower

    DreamPower

    Joined:
    Apr 2, 2017
    Posts:
    103
    For me, the most common problem when it works in the Editor but not in Builds, is when functions need to be run in the correct order. Like, if one class has to run its Awake or Start before another class' Awake or Start, the order in which they are called may change in builds as opposed to the Unity Editor. So that's the first place to look - see if any of your code is dependent on being called in the correct order, and if it is, either fix it, or manually set the order in Unity Project Settings->Script Execution Order.

    Also, check to make sure you aren't running into a Null Exception of some kind, Unity writes all the console output to its Log files, here's where to look:
    https://docs.unity3d.com/Manual/LogFiles.html