GUI.Button work on PC but error on MAC?

My partner and I are working on a game for unity. I’m using a PC, windows 7, and I’ve created GUI buttons to use for our game.

When my partner tries to run the game on his mac in unity itself he gets an error:

OS Error code: -8796

UnityEngine.GUI:Button(Rect, String)

SystemController:OnGUI() (at assets/Scripts/Altar Game/SystemController.js:317)

Any ideas?

This is a font-related error. You’re probably using the default font in the PC build, which will not work in the OSX version. The problem is that when you create a new font, it builds a texture sheet for that font, and a material that you can apply to the GUI elements. When you don’t create a font other than the default one, it just uses your windows font system to pull in a default font- but a texture sheet and material are never created. When the project goes over to Mac, it’s going to look for the windows version of Arial. If you replace it with a different font (or simply make a font material/texture for the default one), it will work.

oh that makes perfect sense thank you!

i’m not quite sure on how to make a texture sheet and material though :S