- Home /
Getting pink squares on default font
I have been looking through all the other questions that may be similar to mine but so far no one has actually asked. I am using the default font (Arial) with Unity 5.3.5f1 and it renders fine when running the game within Unity, but when I build to my Mac, it is showing pink squares instead. I have not added a custom font, nor would I like to. This seems like a bug as I have merely added a UI/Text Object and changed the color to white. Anyone have any idea what is wrong here? Thanks for any and all help.
Answer by Jessespike · Jun 15, 2016 at 05:39 PM
The pink or magenta material indicates an error in the shader, or maybe it's missing from the build. Not sure why you've encountered this problem, perhaps because the shader hasn't been specifically referenced in the project, so the build process left it out?
You can try creating a new material with the "UI/Default" shader and have Text object reference it.
Hey, that worked! Perfect. Thanks for the help. I am still learning Unity and have yet to really dig into shaders. $$anonymous$$uch appreciated.