Building a minimap in Unity 3d

How do we build a minimap in Unity 3d? Is it a GUI function as well?

2 Answers

2

MiniMap miniMap = new Unity.MiniMap();

Lets just think this one through…
You can’t really expect this kind of functionality to be implemented in a function.
Try to think about what minimap is. It’s a picture of your level from upper view. It does not show all the details. It uses some kind of abstraction. Unity development team cannot know what kind of abstractions you will use.
So basically, you’ll need to do it yourself. But it’s not a big deal. All you need is rendered image of your scene from above, some kind of image process in graphics editing program and then implement a script that will show that map in your game (OnGUI) as you do with any GUI texture.