- Home /
Question by
ninjadragon777 · Dec 01, 2017 at 03:36 AM ·
uibuildunityeditor
Unity 2017 build ui turning purple
When I build the game in webgl or anything else the ui turns purple.
But in the editor it looks fine.
Please help.
screenshot-6.png
(374.5 kB)
screenshot-5.png
(123.3 kB)
Comment
Best Answer
Answer by Mikael-H · Dec 01, 2017 at 09:52 AM
That is generally the telltale sign of a shader error. If it works in the editor but not in your build then I would guess that the shader is not being included in the build somehow. One way this can happen is if you assign shaders by referring to them by name. In that case you must make sure that they are actually included in the build through either marking them explicitly as "Always included shaders" in Edit -> Project Settings -> Graphics or placing them in a resources folder.
See this question for more info and answers