Skip to content

Simple MiniMap



Open 3rd person BP, viewport
Add
1.Spring arm (name as MiniMap SpringArm), (set arm length 450, rotate -90,on top of character)
2.SceneCaptureComponent 2D (child it under mina map spring arm)
image.png

Select the scenecapture component, texture target, choose Render Target
image.png
Name as MiniMapTextureRenderTarget, save the texture

R click on the Render tagert texture, create material
image.png
Name as M_MiniMap_TextureTarget

Open the material, change material domain to user interface
image.png
connect the RGB input
image.png

Create a widget called WB_MiniMap
Add canvas and image
in image, set the size as square and change image brush to MiniMap texture target
image.png


Go to 3rd person BP, event graph
image.png

Now the mini map works.
To let the map fixed (always face to 1 direction) on its rotaton axis,
and make the map as flat 2d (i.e. no depth)

Go to 3rd person BP, viewport
Mini map spring arm, disable all camera settings below:
image.png
in scene capture component
change project type to Orthographic, increase width value make the camera distance longer from the character (after change this project type, spring arm length no longer affect camera distance)
image.png

Add player indicator in map:


Go to 3rd person BP viewport
Add PaperStrip component, name as PlayerIndicator Strip
child it under character mesh
image.png

search default Arrow texture in content broswer, R click and create Sprite
image.png

Back to 3rd person viewport Spirte, change the source sprite,
relocate it on top of character while below the capture component
image.png
in Render → Advnace, tick owner no see (hide the arrow in scene, just show in map)
image.png

Optional:
The tutorial changes the arrow material to masked unlit sprited material (i don’t find it)
It overrides rendering (i.e. the arrow won’t disappear sometimes when the character moving due to rendering)
image.png

Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.