Tutorial - How to make a mini-map in Unity

  Рет қаралды 5,691

Broken Knights Games

Broken Knights Games

4 жыл бұрын

In this video I demonstrate one method to create a top view mini-map for a game level. This method is using a separate camera and a render texture. I also show how we can use different layers to filter out objects from being rendered when using multiple cameras in your scene.
Quick Reference:
Intro: 00:38 OpenGameArt.Org Assets
Create Render Texture: 01:40
Setup Second Camera: 02:15
Setup mini-map UI Elements: 04:36
UI Mask 07:29
How to configure and adjust the mini-map display: 16:01
Mini-map art assets created by opengameart.org user Kindland
opengameart.org/content/mnimap
Download my completed project from github to see how everything is put together
github.com/Srfigie/Unity-3d-T...
Follow me on Twitter: @Broken_Knights
Instagram: / brokenknightsgames
Website: Https://BrokenKnights.com/

Пікірлер: 10
@hyfeno
@hyfeno 4 жыл бұрын
nice tutorial. keep it up
@____---__________--------_____
@____---__________--------_____ 4 жыл бұрын
right when I needed it thx man
@____---__________--------_____
@____---__________--------_____ 3 жыл бұрын
@Corey Jamie not really the right place to spam your bots
@MuhsininMabrur
@MuhsininMabrur 2 жыл бұрын
mantap
@vanglovis
@vanglovis Жыл бұрын
is there a video you have made where you make a map like the minimap? what i mean a map is like gta when you press the m key and being able to see the whole terrain
@JustChristian02
@JustChristian02 4 жыл бұрын
Dope, however if using HDRP, having multiple cameras tend to slow the computer to a stop. What would you recommend for that?
@brokenknightsgames7966
@brokenknightsgames7966 4 жыл бұрын
I haven't messed around with HDRP very extensively but, I would think that by applying layer and or volume masks, and occlusion culling, you would be limiting what is being rendered by the second camera, thus saving on performance. It all depends on your project and what is being rendered in your mini-map (if you were to choose this approach). I have not tried this yet, however you might be able to save draw calls by using a custom render texture and set the update to 'on demand' and update the texture on an interval like every .5 seconds for example with a script. If after doing all of that there are still significant performance issues, then I think you might want to consider a different approach to creating a mini-map. The biggest thing is to make sure you aren't rendering your entire scene with post processing effects with two cameras at the same time.
@JustChristian02
@JustChristian02 4 жыл бұрын
@@brokenknightsgames7966 Thank you! I will what you have said and give it a shot.
@sosolala5080
@sosolala5080 3 жыл бұрын
would this work if my model has roofs?
@brokenknightsgames7966
@brokenknightsgames7966 3 жыл бұрын
Yes, as long as the roof is a separate mesh and you put the roof game object on a layer that is not rendered by the mini map camera
Building Controller Rumble Patterns in Unity With New Input System
25:05
Broken Knights Games
Рет қаралды 13 М.
How to make a HEALTH BAR in Unity!
21:06
Brackeys
Рет қаралды 1,1 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 116 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 5 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 5 МЛН
How to create a Minimap with Unity
9:03
Jayanam
Рет қаралды 10 М.
Local Co-op in Unity using the New Input System - Tutorial
19:41
Broken Knights Games
Рет қаралды 44 М.
How to make a Video Game - Godot Beginner Tutorial
1:17:12
Brackeys
Рет қаралды 1,4 МЛН
How to make a Simple Minimap (Unity Tutorial for Beginners)
8:20
Code Monkey
Рет қаралды 132 М.
Unity : Quick & Easy Mini Map implementation
11:25
The Unity Dude
Рет қаралды 10 М.
How to make AWESOME Scene Transitions in Unity!
19:45
Brackeys
Рет қаралды 925 М.
SHOOTING/FOLLOW/RETREAT ENEMY AI WITH UNITY AND C# - EASY TUTORIAL
12:55
I Tried Every Free Blender Addon
10:33
Smeaf
Рет қаралды 33 М.
THIRD PERSON MOVEMENT in Unity
21:05
Brackeys
Рет қаралды 1,4 МЛН
Как сбежать от РОДИТЕЛЕЙ в Schoolboy runaway???
12:26
idontfirst GAME
Рет қаралды 1,1 МЛН