Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
9
Question by Brennan · Jun 26, 2010 at 06:21 AM · minimap

How do i create a minimap?

I wanted to know how to make a minimap? So i started to think maybe a second camera held directly above the character? but how would i make it appear in the top right corner of the screen. Would it be a gui or something of somesort? Please consider in helping me...

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image karsnen · Apr 30, 2019 at 07:22 AM 0
Share

for anyone -> https://blog.theknightsofunity.com/implementing-$$anonymous$$imap-unity/

11 Replies

· Add your reply
  • Sort: 
avatar image
37
Best Answer

Answer by spinaljack · Jun 26, 2010 at 10:42 AM

You set the minimap camera to a higher depth than the main camera to get it to render over it.

You set the culling on the minimap cam to depth only so it doesn't render a sky box or anything to cover the rest of the screen.

You then set the viewport normal on the minimap to a corner of the screen.

http://unity3d.com/support/documentation/Components/class-Camera.html

The normalised rect is from 0-1 where 1 is the width of the screen so 0.5 would be half the screen.

You can also make the map extra special by creating a map icons layer and disabling it on the main camera and setting the map cam to only render the terrain layer and map icons layer so you'll see map icons in the minimap and not in the main view.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Simon-O · Feb 12, 2014 at 12:57 AM 2
Share

Complete and succinct - I wish more answers were like this.

avatar image exorakhilas · Sep 27, 2014 at 08:49 AM 0
Share

Thanks! This helps.

avatar image gm2008 · May 18, 2015 at 11:24 AM 1
Share

@spinaljack $$anonymous$$aybe you mean set the "Clear Flags" to "Depth Only"?

avatar image KatSeiko · Jul 15, 2015 at 08:23 PM 3
Share

Absolutely what I needed, even years later.

avatar image Zanyblax · Sep 11, 2015 at 09:55 PM 1
Share

absolutely awesome answer... worked perfectly, even in unity 5

avatar image
5
Best Answer

Answer by Ashkan_gc · Jun 26, 2010 at 12:21 PM

there are two ways to do this. 1 you can use normalized viewport as described by spinaljack in another answer. 2 you can render the camera to a render texture and use that texture in any 3d plane/GUI you want. this will require you to have unity pro.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image karsnen · Apr 30, 2019 at 07:22 AM 1
Share

Something like this -> https://blog.theknightsofunity.com/implementing-$$anonymous$$imap-unity/

avatar image Mushakushi · Aug 30, 2019 at 07:57 PM 0
Share

As of Unity 5, RenderTextures are not a pro-only feature. See this post for more information

avatar image
1

Answer by JJNCreator · May 06, 2012 at 02:44 AM

you make a camera, go into "game" tab (next to "scene") and set the position of the camera (i put it in the upper right corner). next, put it up REALLY high up on top of your player and set the projection to orthographic. now make a c# script that will make the camera follow your player. heres the script i used:

 using UnityEngine;

public class CameraFollow : MonoBehaviour {

     public Transform Target;
     
 void LateUpdate()
 {
     transform.position = new Vector3(Target.position.x, transform.position.y, Target.position.z);    
 }

}

then, set your player as the target. if you see any problems, reply back to me. hope it helps!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by kolmich · Aug 15, 2012 at 11:28 AM

Hi there,

Making an minimap is not as simple as it appears when you first think about it. We spent about 3 month implementing a really good working minimap/map system. Its fully customizeable, well documented and super easy to integrate. Maybe this would save you some time?

KGFMapSystem Homepage checkout the screenshots!

KGFMapSystem Assetstore

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image LoungeKatt · May 10, 2017 at 08:02 AM 0
Share

A well-made $$anonymous$$imap asset is a great timesaver, but building one one that is designed to the project saves a lot of overhead and isn't overly complicated. A decent one only takes a few hours.

You should really state that your $$anonymous$$imap extends NGUI ($95). That adds significant overhead and implies that very little of the map is handled by proprietary code. This would be the option you choose if you are already using NGUI and want to add a $$anonymous$$imap to it. It is not something to suggest when someone is looking to add a $$anonymous$$imap to a new project or one without NGUI.

avatar image
0

Answer by Treasureman · Sep 07, 2014 at 07:13 PM

Set the camera depth to 1 and change the x and y until it's where you want

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • 3
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

16 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

resetting the my default value for camera field of view 1 Answer

Minimap rotation 2 Answers

How to make light invisible to first person controller -1 Answers

Camera render to texture, draw on GUI? 0 Answers

How to create a dynamic map in hand of FPS like Far Cry 2 or Firewatch? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges