How to make a Minimap in Unity

preview_player
Показать описание
Let’s make a minimap using Render Textures!

····················································································

········································­­·······································­·­····

Edited by the lovely Sofibab.

········································­­·······································­·­····

► All content by Brackeys is 100% free. We believe that education should be available for everyone.

········································­­·······································­·­····

♪ Baby Plays Electro Games
Рекомендации по теме
Комментарии
Автор

To create a map more like the thumbnail, have sprites on top of the player and each enemy, facing the minimap camera, on a layer that only that camera picks up. That way you can display an arrow where the player is and dots where the enemies are. To get animations on the minimap, animate the sprites.

plagiats
Автор

Thumbnail: Awesome minimap!
Video: Let's make a square.

Tymon
Автор

nothing against using RenderTextures for a minimap, but it has certain disadvantages and does not look too good imo

I would love to see a tutorial on how to make a minimap like the one in your thumbnail.
With a simplified map-overview and markers for the player, enemies, loot etc.

cschott
Автор

Btw the minimap in the thumbnail is the minimap from the game Aion

Faery
Автор

I watched your videos years ago when you first got started and really enjoyed the speed, clarity and thoroughness of your tutorials back then. You're on a whole other level now, and I'm really impressed with how far you've come. Good job man.

PICKERY
Автор

To make dots appear on the map, attach 2d sprites on top of all the objects that are filtered out by the player camera and are only visible to the minimap. This way you can make enemies appear by turning on the sprites

zacksima
Автор

If you are worried about two cameras rendering too much stuff. You can have flat textures of your ground or your objects parented to the main 3D objects (like your player and items). and have the main camera not render them whilst the minimap camera does.

JM-dcrn
Автор

7 years after you created this, and it's still a really useful video! Thanks

fokeyjo
Автор

Thank you SO MUCH!
I'll definitely credit you in the acknowledgement section of my dissertation!!
I'll also gladly recommend you to my audiences when they inquire about the game UI elements!
You are a rockstar! Keep on doing the wonderful work!
All the best Brazilian vibe and warmth,
Jr. = )

dr.araujo-junior
Автор

Honestly have to say that your tutorials are great. I've been a subscriber for a while now and I always find your videos clear and easy to follow, so thanks!

JessicaVampice
Автор

MAKE SURE YOU DO THIS!!! Canvas --> Canvas Scaler --> UI Scale Mode --> change to "Scale with Screen Size" so if you playing on phone or tv the minimap is the same size, I do it for all the UI that goes infront of my player camera

Avery_Silva
Автор

People, he's given you the basics, you obviously wouldn't use it in a finished game without improving on it.If you want a better mini-map, you can assign an img to your gameobjects, and render that image instead of the 3D object, this would improve performance by a huge amount (and is the reason why games do it in the first place), and would get you closer to that actual ingame minimap look. Another thing I've seen people complain about is the fact that the minimap's not a circle. Just put a circle image above it and render only what's inside of it...

Mycrosss
Автор

Nice video!! Good job! I will try to do something same with you tomorrow!

SuprunAlexey
Автор

For an IT student your content and the way you explain it, it's just fantastic.
Love this channel, keep it up <3

cosmingugoasa
Автор

Dude! You are seriously one of the best Unity teachers around. You have already helped me so much. Thank you!

Rambolink
Автор

That was GREAT!! I'm currently not developing anything that I could use it for, but I will definetely keep it in mind when I get the opportunity! You're doing a fantastic job here!

boombaby
Автор

Your tutorials are amazing! Each time I bump into a video of your making, I learn a lot of stuff!

O_Mercurial
Автор

You are not uploading new videos but still helping us, thanks. This helped a lot in my project 😊

medhavimonish
Автор

Just made a game using render textures.. Love your videos, thanks!

chasebsnow
Автор

I'm sorry Brackeys but I have never played or seen a game where minimap was just the game itself but rendered from the top. Isn't it rendering everything twice? Kind of overkill. Most of the times there is a texture representation of the map with player position on top of it.

Graferification