Interface Map

Hey everyone this may seem like a strange question but whats the best way of making a campaign style map that has like some planets on it that can be clicked on and interacted with like in sw:empire at war game? Not so sure how to do it… gui? or maybe make planets of smaller scale like I do in the actually battle scenes?

1 Answer

1

Well since I never really liked GUI in Unity I’d propose making your interface in full 3D using a camera in Orthographic mode if you want more of a 2D aspect to your map. That and using 3D text next to your planet that you activate/deactivate when mousing over your planets for names/descriptions. Then loading the scene you want when you click on the planet, maybe put the scene you want to load in a public variable so you can easily change it from the editor without having to make a thousand scripts for every planet.

If you want something more optimized and less laggy though, you can make planet icons in photoshop/whatever else and put them on planes instead of making full 3D spherical planets.

Unity GUI is a bit messy when it comes to making a menu and makes you code a lot so if you want to keep it simple, make it with 3D objects, but keep the aspect ratio in mind if you’re making a PC game (4:3, 16:9, different resolutions might hide some elements of your menu, make sure you design it in 4:3 so everyone can play it)

Hmmm…anyone know what I am talking about? like this? [Pic][1] [1]: http://upload.wikimedia.org/wikipedia/en/5/59/Sweaw-gc-ag.JPG

–

Can I use a scroll view with a bunch of buttons inside the scroll view that are images of planets that you can click that manage things? How would I place the planet buttons where I want them in the scroll view easily? I would like to stick with gui I think...

–

Oh well for that you could use GUI for the HUD and put planets in a scene that you could click on to show different things and managmenent options in your GUI, but making the WHOLE thing in GUI would just be incredibly long. If you want to scroll easily between planets, make a camera that you can move around, RTS style.

–

so I kind of got the idea but what about guy labels printing by the planets and moving out of view when using a slider to move camera around?

–

You can use a 3D text even if its not 3D. It would actually be better. 3D text isn't actual 3D text like the cheesy stuff you see on word, its just text on a plane that you can put wherever you want. So all you would have to do is put a 3D text next to every planet, facing the camera, and it would stay there. Then activating it, deactivating it when you click on them.

–