Making a board game interface with UnityGUI

Greetings, I’m currently developing a video game based on the Risk board game. I’m designing the GUI but I’ve come across a few problems.

Ideally we’d like to have a picture of the game board as a background image and a GUI button for each country. Additionally we’d like to be able to display the units each country has (which are 3D models) on top of each country. This presents two problems:

  1. We’re using GUI.Label to set the game board background image. However this covers up the 3D models we’d like to display as units. Is there a way to set a background image that doesn’t cover up things looked at by the main camera? We’ve resorted to using a plane with the image as a texture for it but this gives quite a few issues of its own, like the plane not being large enough for certain resolutions (or being too big for others).

  2. Under this scheme we’d have to use 42 buttons and making all of them resolution insensitive is a pain. Isn’t there a way to permanently link buttons to certain spots on an image, or something similar to that?

Thanks a bunch.

I wouldn’t use OnGUI for this at all; that’s really not what it’s designed for. Using planes work work best. They automatically work with any resolution, so I’m not sure why you’d say they’re not large enough/too large, unless you’re talking about aspect ratio rather than resolution. In that case you have to decide whether to scale or crop.

–Eric