🌐 Have you found the videos Helpful and Valuable? ❤️ Support on Patreon www.patreon.com/unitycodemonkey or get the Game Bundle unitycodemonkey.com/gamebundle.php
For anyone struggling at the 5:15 mark: The source image he adds is a circle sprite (pretty easy to just create yourself) He also makes the minimap render texture a child of the image (the mask) in the hierarchy, and does not show it
I know this video came out some years ago, but this one was super helpful for me and I just used it to build a minimap/overlay map for my game. Thanks for making great content!
Это лучший канал по обучению создания игр в среде unity . Даже среди СНГ скучно смотреть видео. Так держать братишка. Ставлю лайк. Да да тебя смотрят и русские🙂
Best episode ever, so much a person can do with this, I actually want to know how to hit an enemy like you do in this video and make them fly away like a rigidbody in a 3D space.
1) Ability to hide minimap by pressing keys 2) Render a grass in minimap window (gray background isn`t looks good) 3) I think it will be better to do minimap smaller.
Hello, first I would like to thank you for all the tutorials you share. Now I would like to ask if there is any chance you can make a mini map tutorial when you press a buttom (m) and it shows the entire map and character location. Like in ORI game. Thanks in advance.
I struggle at 3.17. In the scene view the player minimap icon is colorful but not in the game view. I believe it is due to i do not have the option to set the color format to ARGB32. I have tried the different options but no solution. What do I need to do?
Your videos are always very informative!! Can you show how to do fog of war inside the minimap only? (not on main screen) i have been struggling with this. Thank you!!
Hmm you could do it just like you would do normal fog of war, except instead of hiding the normal visual object it would only hide the minimap sprite. What I built in the prototype for my recent DOTS RTS game is based on a mesh that constnatly draws to a texture, then that mesh is used as a mask to create the fog of war. ua-cam.com/users/live1BoKNH7faM0
Hi thank you for awesome tutorial. I came here as I am follwoing your Radar sweep tut. I folloed every step, but my green cicrle sprite is not moving..?? My main camera had already a couple of scripts on it, but I tried with and without same result...
Hi, I am trying to make a simple radar for a space sim game that is 2d but I want the UI icons not to rotate according the z and x rotation of the craft. So parenting isn't an option I think. Any Ideas? Should I use a script attached to every icon preventing the rotation or are there any scriptless cheat ways?
I have a follow player script attached to main camera. My little dot only moves as intended if I disable that script. Please advice as I need camera to follow player
Apologies if this is a silly question, but wouldn't this mean in the scene view you always see the minimap icon in the way while you are trying to work on stuff? (Grear tutorial btw! Loved it)
Since we set things up to use a different layer you can go to the top right hand corner, click on the Layers dropdown menu and hide the Minimap Layer. It will still be rendered in game but won't show up in scene view. Cheers!
Are you making an android or webGL build? Those can sometimes have some issues with render textures but it should work Check the logs on the build, maybe there's some error stopping it from running
5:17 When you hid the Circle Mask, it didn't immediately change into a circle. But I noticed you edit something out after you uncheck the mask and it clipped to having it a circle with no other change. Is there something I'm missing here?
do I have to separate EVERY game object or I can create an empty and add all my game objects and do the steps you did right now to make a minimap??? PLZ ANSWER.
Im not sure what you mean by separate every game object? Do you want the icons to only use a single game object? If you had thousands of objects and needed a more performance minded solution you could make the icons into a single mesh drawing a quad for each icon. Would be faster but more complicated to implement.
@@CodeMonkeyUnity Thank you for answering if it wasn't for you I wouldn't have a minimap and even if I did, I would've had to separate every game object and it would've gotten all complicated. Thank you so much for the help! :))
Hi, Great tutorial. Can you create tutorial also for minimap in 2d sidescroller game like it is in Grim nights? ...where you can click on some location in minimap and your main camera will be transformed to that location. I can't find anything like that on yt. Thanks :)
How do I download the files without the minimap being created already? I want to download what you have at the very beginning of the video, but when I download the files from the link in the description, the minimap is already created and on the game. I don't want this because I want to make the minimap while following along with the tutorial. Thanks.
I don’t think that you can get this one without the minimap but you can just delete everything from the minimap or take another game scene similar to this one on another CodeMonkey video
When you change the icon from enemy to deadbody, are you changing the gameobject completely? I am trying to change the actual sprite from a single gameobject during code and am not having much success doing so!
What problem are you having? Just changing the Sprite field should work just fine. If it's a spriteRenderer you just need to change the spriteRenderer.sprite If it's a Quad you need to change the material.mainText
@@CodeMonkeyUnity I was changing the spriteRenderer.color < - will eventually be changing the spriterenderer.sprite but I'm just in the prototyping stage and have not drawn my sprites yet. I think what the issue is, is that the object that I have the script on is the parent of the parent of the object with which I am trying to change, oh and it's also part of an array. This is why it's so complicated for me!! Side note : I did not expect you to respond thank you so much for even inquiring as to how you could possibly help me
I'm looking to have a 'treasure map' type of map. where I have a 'cartoon type map' with a X that marks the spot. different than a minimap show the character moving within his know environment. the character would have a marker showing his location on the treasure map. the map would be totally different than the landscape/terrain map (hope all this makes since)...any thoughts how how to accomplish this?? any help greatly appreciated.
You can do pretty much the same thing as here, except instead of having it always in the corner of the map you would show and hide at the press of a button. Then also perhaps keep the Minimap Camera fixed instead of following the player.
@@CodeMonkeyUnity ...if I have a fixed minimap camera, I guess I would have to do some type of coordinate update to show the characters location on the 'treasure map'...as he moves across the map???? thanks again for your quick reply...
I've sepeatete the icons to different layers and try to hide it from the main camera but it keeps showing up and the map camera does not rotate either...
Make sure you're changing the layer of the object that has the rnedering component. If you have the SpriteRenderer on a child object but you only change the layer on the parent it won't hide
Hi, thank you for the tutorial! I couldn't find anywhere how do I put a custom imagem for the minimap background. I want to draw the map and place it on minimap preview...How do I do that?
Are you talking about the characters? My system is based on dynamically generated meshes, I covered the basics for how it works here unitycodemonkey.com/video.php?v=11c9rWRotJ8
hey! late to the party but in later versions the 'target texture' is no longer there. the only thing available is the 'output texture' but it doesnt seem to work.
What kind of buttons? In the video after this one I create some buttons to modify the Minimap ua-cam.com/video/TOygeraCrEQ/v-deo.html If you mean clickable buttons right on the minimap that's a bit tricky since you can't capture clicks directly going through a RenderTexture. You could make the sprites clickable then put the minimap in full screen and capture the clicks as normal.
I Needed a Minimap Without Another Camera.. ITs not Performant , i Have Experienced Fps Drop.. Why Dont u Make a Tutorial Which Uses A Image And Moves The Player On That Image..Much More Performant And Many Games Do That... :(
As the title says this is the simplest implementation possible, if you need something that is extremely performant then you need a more complex approach.
I just manually resized them. Selected the various icon gameObjects and doubled their scale. In the next video I do it through code based on zoom. Cheers!
I have tutorials for all skill levels, some are beginner and some more advanced, check out the website for the complete video list. If you're a complete beginner start with the Unity Basics Playlist: ua-cam.com/play/PLzDRvYVwl53vxdAPq8OznBAdjf0eeiipT.html If you want a simple game from start to finish check out the Snake series: ua-cam.com/play/PLzDRvYVwl53ucaUs0YGfyyKXdgqh5OtiK.html
If you can , all parts... but if you can't make it ... maybe a garbage collection tutorial ... i think it will be more useful for everyone than rendering graph... ty .
Hmm interesting, what specific part about a quest system would you like to see? Maybe I could look into making a generic class to keep track of events or something.
you didnt show the step where you dragged the texture into the ui image after you made the round mask, making your video very confusing and wasted more time trying to figure that out than anything else.
You mean the border image? It's just a UI Image with a Sprite applied to it. If you're not familiar with the basics of Unity watch these videos ua-cam.com/play/PLzDRvYVwl53vxdAPq8OznBAdjf0eeiipT.html Also why do you say "wasted time trying to figure it out"? You spent time learning how the engine works and how a Image Component requires a Sprite. It's not wasted time if you learned something you didn't know before.
🌐 Have you found the videos Helpful and Valuable?
❤️ Support on Patreon www.patreon.com/unitycodemonkey or get the Game Bundle unitycodemonkey.com/gamebundle.php
For anyone struggling at the 5:15 mark:
The source image he adds is a circle sprite (pretty easy to just create yourself)
He also makes the minimap render texture a child of the image (the mask) in the hierarchy, and does not show it
legend
thanks bro
thank you
You saved me a lot of time, thank you ☺
Bro your a FUCKING LEGEND. I spent so long trying to figure that shit out then I read your comment a it fixed it for me. Cheers mate
probably one of the most efficient way to use a mini map.
I know this video came out some years ago, but this one was super helpful for me and I just used it to build a minimap/overlay map for my game. Thanks for making great content!
I'm glad the video helped! Thanks!
Same. I watched this video about a year ago and I am now just working on a minimap system for my game. What a fantastic resource!
This was one of the best unity tutorials I've ever seen
Это лучший канал по обучению создания игр в среде unity .
Даже среди СНГ скучно смотреть видео.
Так держать братишка.
Ставлю лайк.
Да да тебя смотрят и русские🙂
Я думал я один
Your add help you a lot, its the first time i pressed on ad with out it being a misstake.
Also your tutorial is great
Best episode ever, so much a person can do with this, I actually want to know how to hit an enemy like you do in this video and make them fly away like a rigidbody in a 3D space.
I just would like to say that your tutorials are awesome. Keep it going that good job! :)
Many thanks! Glad you like them!
One of the best tutorials I have found on unity 2D
Got to say, nice ad, nice video damn. Subbed
Question: What Minimap features would you like to see added in future videos?
1) Ability to hide minimap by pressing keys
2) Render a grass in minimap window (gray background isn`t looks good)
3) I think it will be better to do minimap smaller.
a quieter keyboard
A regular fullscreen map would be cool!
Hi I mean learn us the codes
compass
Here I was looking for an asset in the asset store to basically do this :D. Thanks for the tutorial!
this is exactly what I was looking for thanks you so much!
This is the video that I am exactly Searching for! Thanks Dude
I have got an idea for your game: make a night mode.
Whoa you are a good programmer
Can upvote this video enough!!
thank you so much for this info, very easy to understand and useful.
awesome, many thanks, saved lots of my time at midnight
Hello, first I would like to thank you for all the tutorials you share. Now I would like to ask if there is any chance you can make a mini map tutorial when you press a buttom (m) and it shows the entire map and character location. Like in ORI game. Thanks in advance.
Thank you for the video :D Happy New Year
Happy new year!
I struggle at 3.17. In the scene view the player minimap icon is colorful but not in the game view. I believe it is due to i do not have the option to set the color format to ARGB32. I have tried the different options but no solution. What do I need to do?
Helped me a lot! Much appreciated
Thanks! Subscribed with 🔔
Your videos are always very informative!! Can you show how to do fog of war inside the minimap only? (not on main screen) i have been struggling with this. Thank you!!
Hmm you could do it just like you would do normal fog of war, except instead of hiding the normal visual object it would only hide the minimap sprite.
What I built in the prototype for my recent DOTS RTS game is based on a mesh that constnatly draws to a texture, then that mesh is used as a mask to create the fog of war. ua-cam.com/users/live1BoKNH7faM0
@@CodeMonkeyUnity thank you !
This is exactly what I looking for
Great video!
thank you this work great for me
your video very perfect!! thank you
Amazing tutorial! Thank you :)
Thanks for the tutorial !
Thank you so much
Hi thank you for awesome tutorial. I came here as I am follwoing your Radar sweep tut. I folloed every step, but my green cicrle sprite is not moving..??
My main camera had already a couple of scripts on it, but I tried with and without same result...
I love how your toon is just standing there and the enemies are stabbing you. Kind of comical.
best video on this thank you so much
Wou is realy Easy.
Thanks GodMonkey
Thanks for this video bro. Thanks a lot
awesome tutorial
Nice video! I wanted to implement this minimap functionality to my game, and thanks to you brother I can now do it 😀
Glad you found the video helpful!
amazing tutorial. keep like that.
Hi, I am trying to make a simple radar for a space sim game that is 2d but I want the UI icons not to rotate according the z and x rotation of the craft. So parenting isn't an option I think. Any Ideas? Should I use a script attached to every icon preventing the rotation or are there any scriptless cheat ways?
I have a follow player script attached to main camera. My little dot only moves as intended if I disable that script. Please advice as I need camera to follow player
very helpful thanks
Thanks!
Thanks I'm suscribed and I activated the bell
Apologies if this is a silly question, but wouldn't this mean in the scene view you always see the minimap icon in the way while you are trying to work on stuff? (Grear tutorial btw! Loved it)
Since we set things up to use a different layer you can go to the top right hand corner, click on the Layers dropdown menu and hide the Minimap Layer.
It will still be rendered in game but won't show up in scene view.
Cheers!
thanks for the help
Are you gonna do blender and Hammer tutorials too?
I'm not familiar with hammer or blender, I mostly work in 2D. Cheers!
Awesome thank you
Thank you. you're awesome.
Hey Mr.CodeMonkey the utils you made... also work on mobile devices such android?
Sure, none of the functions are related to the device
@@CodeMonkeyUnity actually the eventhandler utils helps me a lot especially whenever i point to an object and move it around..
Great tutorial! The minimap works perfectly fine while testing for me. Yet for some reason in build its completely black, any ideas?
Are you making an android or webGL build? Those can sometimes have some issues with render textures but it should work
Check the logs on the build, maybe there's some error stopping it from running
@@CodeMonkeyUnity Managed to fix it, had to change the depth stencil format to D16_UNORM for the android build. Thanks for the help!
5:17 When you hid the Circle Mask, it didn't immediately change into a circle. But I noticed you edit something out after you uncheck the mask and it clipped to having it a circle with no other change. Is there something I'm missing here?
The masked object needs to be a child of the mask, look at the hierarchy
@@CodeMonkeyUnity Thanks
Thankyou
do I have to separate EVERY game object or I can create an empty and add all my game objects and do the steps you did right now to make a minimap??? PLZ ANSWER.
Im not sure what you mean by separate every game object? Do you want the icons to only use a single game object?
If you had thousands of objects and needed a more performance minded solution you could make the icons into a single mesh drawing a quad for each icon. Would be faster but more complicated to implement.
@@CodeMonkeyUnity Thank you for answering if it wasn't for you I wouldn't have a minimap and even if I did, I would've had to separate every game object and it would've gotten all complicated. Thank you so much for the help! :))
How much knockback did he had on his sword lol😂😂😂
I'm love your game
my minimap icon keeps going out of bounds. How do you keep it centered?
Thanks from spain
Hi, Great tutorial. Can you create tutorial also for minimap in 2d sidescroller game like it is in Grim nights? ...where you can click on some location in minimap and your main camera will be transformed to that location. I can't find anything like that on yt. Thanks :)
Legend!
Could you make a minimap with Processing Javascript?
How do I download the files without the minimap being created already? I want to download what you have at the very beginning of the video, but when I download the files from the link in the description, the minimap is already created and on the game. I don't want this because I want to make the minimap while following along with the tutorial. Thanks.
I don’t think that you can get this one without the minimap but you can just delete everything from the minimap or take another game scene similar to this one on another CodeMonkey video
I Love This Channel
When you change the icon from enemy to deadbody, are you changing the gameobject completely?
I am trying to change the actual sprite from a single gameobject during code and am not having much success doing so!
What problem are you having? Just changing the Sprite field should work just fine. If it's a spriteRenderer you just need to change the spriteRenderer.sprite
If it's a Quad you need to change the material.mainText
@@CodeMonkeyUnity I was changing the spriteRenderer.color < - will eventually be changing the spriterenderer.sprite but I'm just in the prototyping stage and have not drawn my sprites yet.
I think what the issue is, is that the object that I have the script on is the parent of the parent of the object with which I am trying to change, oh and it's also part of an array. This is why it's so complicated for me!!
Side note : I did not expect you to respond thank you so much for even inquiring as to how you could possibly help me
thanks you
Mini map click to zoom in full map? Like press M to get a full screen map? No one online showing this please help?
The video is old but gold
Yup everything here still works great nowadays, it's still how I build a Minimap
I have a problem with players icon: when player moves icon shakes, it can be solved only by attaching icon to camera, but this is I don't want to.
Render texture isn't in the drop down for create objects D:
Is there a way to desplay things added as tiles on the map?
in unity 2019.3 there is no clear flag option in URP mode... how can i able to do clear flag
did you scale the objects that are being rendered in the minimap using the transform tab inside the inspector of each object.
The objects rendered in the minimap are based on what the camera sees. So you can scale up or down the icons based on the minimap camera settings.
thnx a lot
Hello there,
Do you have a link to the grass texture you used?
Thanks!
I got it ages ago so don't remember exactly which one it is, there's tons of free ones on the Asset store
I'm looking to have a 'treasure map' type of map. where I have a 'cartoon type map' with a X that marks the spot. different than a minimap show the character moving within his know environment. the character would have a marker showing his location on the treasure map. the map would be totally different than the landscape/terrain map (hope all this makes since)...any thoughts how how to accomplish this?? any help greatly appreciated.
You can do pretty much the same thing as here, except instead of having it always in the corner of the map you would show and hide at the press of a button. Then also perhaps keep the Minimap Camera fixed instead of following the player.
@@CodeMonkeyUnity thanks for the thoughts...and I should have spellchecked my first post...lots of grammar mistakes...lol
@@CodeMonkeyUnity ...if I have a fixed minimap camera, I guess I would have to do some type of coordinate update to show the characters location on the 'treasure map'...as he moves across the map???? thanks again for your quick reply...
I've sepeatete the icons to different layers and try to hide it from the main camera but it keeps showing up and the map camera does not rotate either...
Make sure you're changing the layer of the object that has the rnedering component. If you have the SpriteRenderer on a child object but you only change the layer on the parent it won't hide
Hi, thank you for the tutorial!
I couldn't find anywhere how do I put a custom imagem for the minimap background. I want to draw the map and place it on minimap preview...How do I do that?
Using this method you would place a Quad or Plane beneath the units with your map texture and make it only visible to the Minimap camera.
What is the name of the system that you used to render the required aniamtion for all the angles and actions ?
Are you talking about the characters? My system is based on dynamically generated meshes, I covered the basics for how it works here unitycodemonkey.com/video.php?v=11c9rWRotJ8
@@CodeMonkeyUnity You are the best :)
Can you do a map tutorial, like a map in your inventory that you can check.
Is C# or JS required? Excellent video.
Unity no longer supports JS so everything is in C#
hey! late to the party but in later versions the 'target texture' is no longer there. the only thing available is the 'output texture' but it doesnt seem to work.
Yes Output Texture does the same thing, what exactly doesn't work? I have a more recent video here unitycodemonkey.com/video.php?v=Ah2862Gz3_s
@@CodeMonkeyUnity Thank you. Nothing would render on the texture but a restart did the trick. Your dope as hell though for answering me.
can you add buttons on the minimap and make them interactable?
What kind of buttons? In the video after this one I create some buttons to modify the Minimap
ua-cam.com/video/TOygeraCrEQ/v-deo.html
If you mean clickable buttons right on the minimap that's a bit tricky since you can't capture clicks directly going through a RenderTexture.
You could make the sprites clickable then put the minimap in full screen and capture the clicks as normal.
hey thanks for tutorial, I've got a problem, when i change the screen resolution, the map position changes too... instead of being in the corner
Change the object anchor, by default it's on the center
@@CodeMonkeyUnity thanks very much, Now i Got it :)
Thank you very much. I followed the tutorial. However, when my player moves, the greed circle does not move on my minimap
It is a child of your player?
Code Monkey yes please
What Should Can I Download Useless App On Programming On My Game Can Any One Help Me Please !!! ?
I dont know what's happening but my player in the minimap dont move! T_T HELP PLS!
Did you make the Minimap icon a child of the player?
That's awesome ❤️
But I noticed about 20-30 fps drop while mini map enabled. I appreciate if anyone suggest any solution
Maybe change the resolution of the render texture or disable anti-aliasing
@@CodeMonkeyUnity i tried different resolutions and anti-aliasing was disabled by default but didn't make much difference
I Needed a Minimap Without Another Camera.. ITs not Performant , i Have Experienced Fps Drop..
Why Dont u Make a Tutorial Which Uses A Image And Moves The Player On That Image..Much More Performant And Many Games Do That... :(
As the title says this is the simplest implementation possible, if you need something that is extremely performant then you need a more complex approach.
Loved the tutorial, but at the end I didn't see you resizing the icons ☹
I just manually resized them. Selected the various icon gameObjects and doubled their scale.
In the next video I do it through code based on zoom.
Cheers!
Thanx for the reply. Hope towards to the next tutorial
Your videos are very good, but can you please make some tutorials for beginers, like, how to create game who was in this video?
I have tutorials for all skill levels, some are beginner and some more advanced, check out the website for the complete video list.
If you're a complete beginner start with the Unity Basics Playlist: ua-cam.com/play/PLzDRvYVwl53vxdAPq8OznBAdjf0eeiipT.html
If you want a simple game from start to finish check out the Snake series: ua-cam.com/play/PLzDRvYVwl53ucaUs0YGfyyKXdgqh5OtiK.html
@@CodeMonkeyUnity Thank, I will watch the snake series
can you make a tutorial about rendering?
What part of rendering? Graphics programming isn't my strong point but I can do some videos on the absolute basics.
If you can , all parts... but if you can't make it ... maybe a garbage collection tutorial ... i think it will be more useful for everyone than rendering graph... ty .
not sure why but all my sprites inside mini map appear to be black , no matter what colour I give them
What shader are they using? 2D Lit? If so add a 2D Global Light to the scene and make sure it's hitting that object on that layer
@@CodeMonkeyUnity yes, that was it , made it unlit, its working now, figuring out how to pan the map using the mini atm
How large the map that's desplayed in the main camera have to be?
Not sure what you mean, the map can be any size you want. You can zoom in or out with the minimap camera.
Can you make a simple quest system?
Hmm interesting, what specific part about a quest system would you like to see?
Maybe I could look into making a generic class to keep track of events or something.
Code Monkey like when you picked up a 10 stone for example, the quest would be complete and another quest will pop up.
I did use arrow to represent my car
But how can I use an arrow to represent ai car
does this work with 3d too?
Sure, just put the camera above and point it down.
can i do this tutorial in unity 3d?
Yup, just use a 3D camera, I covered that here unitycodemonkey.com/video.php?v=Ah2862Gz3_s
you didnt show the step where you dragged the texture into the ui image after you made the round mask, making your video very confusing and wasted more time trying to figure that out than anything else.
5:21 you just jump the video past that.
You mean the border image? It's just a UI Image with a Sprite applied to it. If you're not familiar with the basics of Unity watch these videos ua-cam.com/play/PLzDRvYVwl53vxdAPq8OznBAdjf0eeiipT.html
Also why do you say "wasted time trying to figure it out"? You spent time learning how the engine works and how a Image Component requires a Sprite.
It's not wasted time if you learned something you didn't know before.