Minimaps
Last updated
Was this helpful?
Last updated
Was this helpful?
To create a minimap, first set up the minimap camera, then set up the minimap on the vehicle.
To create a minimap camera:
Create a new camera in the scene
Set the Projection to Orthographic and adjust the Size so that it covers the full map
Add a Minimap Camera component
Create a
Add a Minimap Controller to it
Add the Tracker on your vehicle to the Tracker field
Set the Player Vehicle transform
Add a Raw Image somewhere on the vehicle (this will be the image that shows the minimap) and set it in the Map and Map Pivot fields of the Minimap Controller inspector
Add a mask image over the raw image you created above and set it in the Map Mask field of the Minimap Controller inspector
That's it, the minimap will work when you play the scene.
If you are using the Mech Combat Kit and have any doubts about how to do something, refer to the Mech_Titan prefab and look under the HUD to find an example of how it's set up.