- Home /
Game ok in editor, pink screen on build!
We are doing an interactive architectural visualization project. There are hundreds of objects along with materials and textures. All of our textures are huge in sizes, minimum 1024x1024 and max 4096x4096. I have run into a situation where once the project is built, I start it and the whole screen displays pink. In the editor I can play fine with no issue. To solve this problem, I have to downscale some textures and do a rebuild at which point it runs fine.
It seems to me that we are hitting some sort of memory limitation. It is clearly not a shader problem, as I mentioned when the textures are lowered it runs fine. Any ideas? We are confortable with Unity and would hate to go back to UDK, however, we did not experience such issues with UDK.
We need these textures high rez, it is an architectural visualization project which demands it. There is no option to reduce object and or texture sizes. It's interesting to note, we are running the project on a laptop at great fps, but for some reason it feels as though we are hitting some restrictions. Graphics card makes no difference, as it behaves the same on laptop as well as desktop with a fairly decent geforce 560TI. Thanks for any input.
I had the problem with Canvas. I went to project settings -> graphics and reseted it. That worked for me.
Answer by AdnanSiddique · Aug 17, 2017 at 09:27 AM
This is due to missing shaders in graphics settings of your project. reset shaders and your game will work fine, i found this effective in my case
Had to downgrade from 2019.3.0f5 due to a Unity bug with iOS, back down to 2019.2.19f1 and it fixed my main issue, but also ran into this problem where it had missing references for the first 6 out of 9 shaders in the Always Included Shaders list. Thanks for this answer!!!
Answer by SirDef11 · Oct 06, 2017 at 03:19 PM
Yes, reset them : " Edit/ProjectSettings/Graphics. And Right Click at the top of the inspector page for built-in shaders and choose reset it should fix it for you automatically. "
This also worked for me it seems like after various version updates something got corrupted.
Answer by astracat111 · Mar 11, 2018 at 04:23 PM
This happened to me when I switched to OpenGL GLES 3.0 on windows, but was working when I was using DirectX11 (although DX11 is going slow so I'm gonna try another OpenGL).
Answer by Foxxis · Feb 14, 2014 at 08:16 PM
Run the profiler and check how much memory you are actually using. Also, compare your quality settings in the editor with those used when running the built application. Also, check the log output of the Unity Player (most easily found via Console if you are on a mac, not sure where to find it on a PC).
I did two builds, one that i know will work and the other that I knew will fail. The only difference between the two versions was that 5 of the 4$$anonymous$$ maps were dropped down to 1$$anonymous$$. It doesn't matter what textures are down rezed as long as a few are it works ok.
The difference in the log was that the one that didn't work was complaining about "The referenced script on this Behaviour is missing!" I am not sure what this has to do with anything, maybe at some point it just can't load anything?
Again just to clarify, two builds, one with 5 textures at 4$$anonymous$$ the other with those same textures at 1$$anonymous$$. The 1$$anonymous$$ works while the other pink screen. Everything else is identical.
EDIT: And to be clear, it's 5 randomly chosen textures. I'm not implying that I only have 5 textures in total within the project. There are hundreds.
Here are the results of running profiler.
$$anonymous$$emory:
Used Total:0.61GB
Unity: 2.29GB
$$anonymous$$ono: 6.0$$anonymous$$B
GfxDriver: 2.25GB
Total System $$anonymous$$emory Usage: 3.17GB
Textures: 1586 / $$anonymous$$
$$anonymous$$eshes: 270/405$$anonymous$$B
$$anonymous$$aterials: 392 / 392.2$$anonymous$$B
Assets: 6331
GameObjects in Scene: 306
Total Objects in Scene: 1629
Total Object Count: 7960
Hello! I know this thread is dead. But I'm having the same issue. Has there been a fix?
Answer by eganki · Nov 13, 2020 at 05:48 PM
You can try to create a new camera to replace the current one. I encountered this issue after download numerous plug-ins/assets and somehow, it only affects the build version but not in the editor.
Your answer
Follow this Question
Related Questions
Particle Explosions are Purple 2 Answers
Why is my terrain pink when I run it on my android? 1 Answer
Material becoming pink while using DontDestroyOnLoad 0 Answers
Colors in Hierarchy 1 Answer