1

1

MiniMap script

This is the third time I started making a minimap script from scratch and I don’t really want to do it again - so I made this one that should be more flexible than what I’ve used to make.

You can use the prefab using gizmos for display to define the area that the minimap will track. Then use gizmos to define the area where it needs to be displayed. It’s made for a 3D map in X/Z direction, but that could easily be changed if needed.



You need to define your own gameobject to be used as the playerdot. In this case I used a sprite.

The minimap is not using OnGUI(), but moves the sprites ingame. There’s a second camera that draws over the main camera.



Get the package here.



