uiTitle

MMtitle

Step 1:
Create a second camera GameObject>Camera.

Step 2:
Rotate the camera 90 degrees in the x axis. and set the projection to Orthographic.
map001

Set the size so that the camera shows a decent amount of the game world. You can check this in the camera preview.
map002

Step 3:
Set the camera depth to 1 so that it sits above the game view camera. (The depth numbers act like layers the higher the number the further up the pile)
map003

Step 4:
Position the new camera by changing the Viewport Rect settings. 
map004
Something similar to the settings above will give you this effect.
map005

Step 5:
Now we need to get the camera to follow the player. Parent the new camera to the player game object.
map006

Now we need to set the player and camera position to the same. This is very easy to do. Select the camera and in the Transform component in the inspector click the settings icon (cog). Select reset position. This will place the object at the same position as its parent.
map007
Now move the camera up in the Y axis so that it is above the game world. Test your game and the camera should now follow the players movements. You may need to rotate the camera in the z axis as well to get the desired effect. Finally remove the Audio Listener from the camera.
MM008

Step 6:
Adding the player icon. Create a PNG icon with a transparent background. (This example is 128px x 128px). Import it into Unity.
MM001

Step 7:
Select the imported image in the project window and in the inspector check Alpha is Transparency.
MM002
Now create a new material Create > Material. With the settings below. Attach the icon you just imported into the Albedo section. make sure you check Emission and selct a colour to emit. This will make the icon show up on the miniMap.
MM003

Step 8:
Create a Plane game object. GameObject > 3D Object > Plane. Attach the new material created and scale it down so that it works well with your camera view.
MM004
MM005

Step 9:
Parent the palne object to the player so that it follows the player just like the camera. Reset the position and sort the rotation. Finally move the plane above the player and turn off cast shadows in the inspector.
MM006
MM007
Test your minimap and you should have an icon that follows your player.

Step 10:
Adding a border to the minimap. Create a new canvas and set the Render mode to Screen Space - Camera, and set the Plane Distance to 1. Attach the minimap camera to the Render Camera slot in the inspector.
MM009
now add a Panel to the canvas. GameObject > Panel. Uncheck Fill Center and set the colour to whatever you wish.
MM010
You should end up with a very basic miniMap.
MM011

Casino Bet 365 is best casino in the world.

What's Next

Next up for Unity Snippets is a look at game development articles from across the web...

Free Templates - bigtheme.net
Popular Art Betting make bookies articles.