Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 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
3
Question by CalledToGaming · Apr 01, 2010 at 08:21 PM · cameraguiminimapmini-map

How do I attach a Camera to a GUI (for a Mini map)

Pretty much what the question says. How do I attach a second camera to a GUI box (or whatever shape) in order to create a mini map. The camera would obviously be above the player and follow him showing a top down view of the landscape.

I'm also open to other suggestions to achieve these results for a mini map.

Thanks.

Comment
Add comment
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

4 Replies

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

Answer by efge · Apr 01, 2010 at 09:21 PM

Create a second camera and modify the values for the Normalized View Port Rect.

Attach the 'Smooth Follow' script (Component -> Camera Control -> Smooth Follow), set your player as target and modify the values for height, distance and damping.

You then have adjust the values for depth, clip planes and maybe the clear flags.

Also you could use layers to render only a part of the scene for your mini map.

Comment
Add comment · Show 4 · 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 CalledToGaming · Apr 02, 2010 at 01:25 AM 0
Share

This seemed to do the trick for a good makeshift Camera. Still working out the little bugs but it's working nonetheless. THanks!

avatar image emotitude · Feb 01, 2012 at 04:05 PM 1
Share

Did everything as said. but the camera cannot be seen while playing. Should i add any GUI?

avatar image XaeroDegreaz · Sep 03, 2012 at 10:32 PM 1
Share

I don't know if this is solved yet, but for future browsers, you'll need to set the depth property of the camera to a higher level than your main camera. Cameras are drawn to scree "bottom up".

avatar image jaxx0rr · Sep 05, 2013 at 08:16 PM 0
Share

tnx XaeroDegreaz

avatar image
2

Answer by karl_ · Apr 01, 2010 at 09:01 PM

Just checked the Unify Wiki page for scripts, and came up with this:

http://www.unifycommunity.com/wiki/index.php?title=Radar

I've never used it but it looks like it has what you're looking for.

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
1

Answer by Janine · Nov 08, 2010 at 12:15 PM

What i did is just i created a second camera and fixed the values in the NORMALIZED VIEW PORT RECT, be sure to set the depth to 1 or if not higher to overlap the game scene. I placed the second camera high above to have a full view and placed flat circle objects on top of my player (make it higher than the character so the player wont see it) and also for the enemies. Its working but im having problems when screen resolution is changed.

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 Turbine · Apr 10, 2012 at 07:36 PM 0
Share

Should use Camera layers ins$$anonymous$$d. That way the player has no chance of seeing the radar blip except from the $$anonymous$$imap.

avatar image
0

Answer by kolmich · Oct 03, 2012 at 10:49 AM

Hi, you can checkout our KGFMapSystem in the assetstore.

Its a robust and easy to integrate minimap/map solution and it solves the most minimap problems out there. All our users are very happy with it and we deliver excellent support if you have any questions.

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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

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

Can the Camera be Positioned on the Game Screen through code? 0 Answers

Camera placement / size behavior 3 Answers

Getting Camera View (Mini-map) 0 Answers

RTS minimap (mobile but still taking all ideas) 1 Answer


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