Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Runs fine in editor/game tab at runtime, goes wonky in actual build

Discussion in 'Editor & General Support' started by cloverme, Nov 17, 2018.

  1. cloverme

    cloverme

    Joined:
    Apr 6, 2018
    Posts:
    57
    I can't figure this one out, the scene looks fine in editor at runtime, but goes ultra corrupt in a build (2018.2.11f1). It just recently started doing this. Any ideas on what could cause this?



    Seems to be related to something with post-processing, if I change post processing, it changes... but even with no post processing, its still corrupted.


    No post processing:
     
    Last edited: Nov 17, 2018
  2. cloverme

    cloverme

    Joined:
    Apr 6, 2018
    Posts:
    57
    [Solved]

    So, this looks to be a long standing bug from Unity. If you have over 4GB of textures in your build, you'll wind up with all sorts of texture corruption in your build, but it will run fine in the editor. The only way to solve the issue is to use an assetbundle for some of your assets. This has to do with the way that untiy serializes objects.

    https://forum.unity.com/threads/bug-4gb-limit-to-textures-in-standalone-build.441116/
     
unityunity