Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by greatwhiteshark17283 · Mar 07, 2014 at 02:54 AM · gui3dfirst-personhands

How to make a 3d object act like GUI?

I'm making a first person game where the player is able to see their hands. Because of different screen resolutions, the hands might not show up on all computers the right way if I just made them stay right in front of the camera, so I was thinking about trying to make the hands act like they're GUI, like in many other first person games, such as Call of Duty. So could I make the hands do that instead of making them a physical game object?

Comment
Add comment · Show 2
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 HuskyPanda213 · Mar 07, 2014 at 02:57 AM 0
Share

What, as gui, NO one uses that method. I also do not know what you mean by the hands might not show up, it changes a little but not that much.

What you can do is make the camera's FOV higher/lower for different resolutions, or just alter settings in the camera, then if it works make those values assigned in Awake();

avatar image greatwhiteshark17283 · Mar 08, 2014 at 08:10 PM 0
Share

In every first-person game I've played where the player can see their character's hands, it acted like GUI. Also, making the hands not like that will also take up a lot of room for the player if they're holding something. I do agree with what you said about the hands not showing up, as that only happened once for me. Anyways, if you ever play a first-person shooter and walk up to some object very closely, you'll notice that the size of the person's hands don't change and they are still in the same position (which is unrealistic, but makes game play better). So when I said GUI, I meant that I wanted the object to stay in the same position in front of the camera and always be visible.

1 Reply

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

Answer by robertbu · Mar 08, 2014 at 10:26 PM

First, the way Unity works is that the amount of world units seen vertically remains fixed across all resolutions. The amount seen horizontally changes as the aspect ratio of the screen changes. The result is that your hands should remain the same across all resolutions. In fact that is just the opposite of what would happen if you used GUI to display the hands. In GUI, things are specified in pixels. So if the density of the resolution goes up, things get smaller...the opposite of what you want for the display of hands.

Referring to the question you ask in your title, many third-party GUI systems use world objects. They use a second, Orthographic camera for the display of objects. This allows for fixed sizes and allows all the object to appear in front of the scene displayed by the main camera.

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 greatwhiteshark17283 · Mar 09, 2014 at 02:41 AM 0
Share

Thanks, I didn't think of using an orthographic camera. I did think of using a second camera, but I couldn't figure out how to make the background transparent. If anyone else has this problem, set the clear flags to depth only.

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

21 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

Plane Object as GUI - Lighting Issue 1 Answer

Orthographic environment with Interface 1 Answer

GUI Follow RaycastHit 2 Answers

A 2D GUI in mid air, for oculus, tracking an object. 1 Answer

Changing 3d text through script 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