Styling the mini map
I currently have a second camera set to show the track and the car only for the mini map. here I would like it to show the road completely white and the cars as a simple colored circle. and have the track edges fade out at the end.
like here. How do I accomplish this ? please help
Answer by Mmmpies · May 31, 2016 at 12:27 PM
You could create an image well above the track that matches the tracks path. Have another image above every car (slightly higher than the track image) and put them on their own layer. The Image should be part of the car or be able to track it's location. Easiest to have it attached to the car.
Tell the main camera to ignore that layer and have the minimap camera only render that layer. Job done :)
Great idea :D, however it doesn't help me with the fading edges. How would you do that ?
Use a render texture and have an image with black round the edges and white in the middle.
I did something similar but with a hard edge for a tutorial on $$anonymous$$imaps before we got access to the full pro version of Unity. You'll want a gradient fill but it should work fairly similar
Old $$anonymous$$inimap Tutorial
Note that tutorial is out of date but the shader should still work with your gradient white to black image forcing only the white area to show through alpha.
Your answer
Follow this Question
Related Questions
How to make viewport stay inside parent(Overworldmap) 0 Answers
2D minimap - convert click point to world point 0 Answers
Picture frame around minimap 0 Answers
Rotation Issues with compass markers not positioned correctly 0 Answers
Track path for GPS 0 Answers