Huge UI problem (looks like no material, everythink pink) but only in built version (not in editor)

Hello,

when I create a build, Windows x86_x64, Auto Graphics for Windows is On, Color Space Gamma (but I changed most of those, Problem always remains), it Looks like this:


It is the same Problem in all other Scenes, too. It is only the UI, but always the UI. Have this since I use 5.6, currently 5.6.1f1.

When I start in Editor it Looks like this:

What is the Problem, doesn’t anybody else have it?

And also when I create a build, it Closes my Scene in the Editor. That wasn’t Happening before 5.6…

Help would be great, thanks!

I found nothing Special, no Special not-working shader or material:

I created a new material “Gui” with Shader “UI/Defalut” and set it on my Panels and Buttons.
It seems to help! But now the build Version is extremly slow (mayby 3 fps) and in the Editor it is much better (30 fps).

Are These known 5.6 issues? For me or at least my project it was much better before…

And Building still Closes the Scene.

Could you file a bug report please?

Hello Karl,

thanks for the reply. I got it working now setting the new gui material to every single gui element that can have a material. It didn’t have any materials before 5.6 I guess and that was no Problem before?
I am not sure if this is a bug, it is fine again now, also the performance got better now and is good again.

For some other 5.6 Problem, that I get Build Errors with some shaders (that worked before 5.6, from the “Golem Collection”), which I do not get in the Editor I already did a bug Report.

1 Like

My guess is that your built in shaders does not include the UI shaders. Edit/Project/Graphics

Make sure UI/Default is included or build wont be able to find it by default.

3070272--230878--upload_2017-5-15_14-2-19.png

2 Likes

Thanks, I will try that!

1 Like

Yes, that’s the Problem. Thanks a lot!
Still having the issue, when creating a build sometimes unity closes the scene now, but that’s not a big problem.

That sounds like something else. Does it happen with a new project?

Hello Karl,

I have two Projects, a game I am working on since two years, a hololens presentation that I started maybe a month ago.

I have seen it on both with 5.6 different patch Levels. I think it was when I had build Problems at a certain late Point, maybe it was the shaders that I could not compile anymore (I couldn’t help and removed those shaders that worked in earlier unity versions).

The Problem was with shaders of the Golem collection:

I can take a look if the problem with the closing Scene still happens if I put shaders from the package back in. I made a smaller package with the shader Problem and send it to the author of the Golem Collection but no answer yet and I made a bug Report with no answer yet.

I have also seen the Problem with the closing Scene on my hololens Project when I had some error I already fixed.

Just creating the build with a Problem at a certain Point, then the build Fails and you got an empty Scene and the current was closed… but for me this is a minor Problem.

Thanks for the help!

1 Like