Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 WannaHelpMe · Aug 11, 2011 at 08:13 PM · hudbulletshealth

Making an HUD

I just started unity a few days ago- the only thing im good at is making Terrain, and i wanted to add health and hits, i cant find a single website that will explain to me Exactly how to make health or put and HUD on the screen. If you want to say, I want to add a COD HUD- it shows ammo and stuff like that, i dont even know how to make bullets with damage- so if any one can lead me to another question or completly walk me through this that would be great.

Ps. also im making guns im probly going to put on a website later, if i do/ and learn how to make bullets and damage, they should be snipers and shotgunz, anyways ThankYou! For Your Help!

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 FTheCloud · Aug 11, 2011 at 08:31 PM 0
Share

Ha, Awesome Name

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by ThomasQ · Aug 11, 2011 at 08:46 PM

Check the GUI functionality. That is precisely what you are looking for.

http://unity3d.com/support/documentation/Components/GUI%20Scripting%20Guide.html

&

http://unity3d.com/support/documentation/ScriptReference/30_search.html?q=GUI

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 DayyanSisson · Aug 11, 2011 at 08:53 PM

Wow, that's a lot to take in. You should slow down. First of all, no one is going to take you through that whole process. You have to learn it yourself. You should go step by step. First, learn Unity. Go to the Unity Manual to learn the basics of Unity. Then go to Unity3D Student. It will go into some of the same topics, but also goes into deeper stuff. There are a lot of tutorials on HUD, but you should start learning GUI, which is basically the same thing. After you do that, you will be prepared to start creating your game. (Believe me, it works.) If you have any further questions after that, then come to Unity Answers. Try to learn before you ask. Also, look at other questions before you ask because they might ask the same thing. Look at How to make a GUI or HUD. Also look at this.

Hope this helps & good luck on Game Design :)

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 Rocketman123 · May 02, 2017 at 02:43 PM

Alright. First of all, i am not an expert. i have learned from experience like everyone else. so if something is conflicting, you should probably use the other source. Second, i know this was posted in 2011. but maybe this response will help someone else. Third, this code is kind of sketchy. it may not work quite right. it will take some work to get it up and running. but. here is my code.

   void OnGUI()
     {
        
             GUILayout.Label("Ammo = " + projectile1ammo);
             GUILayout.Label("Cartridges = " + projectile1cart);
             GUILayout.Label("reload time left = " + projectile1rel);
        
     }

the "void OnGUI(){" MUST come before all GUI actions. it also cannot go inside another void. The GUILayout.Label will always come out in the upper left hand corner. i don't know why, it just will. the " + projectile1ammo" references a Interger. it simply puts in a number. the ("ammo = ") or whatever else happens to be there is what will be displayed.

So, that's what i know. it's probably very flawed, i'm no expert. if you have any other problems, just leave a reply. i will try to help.

~regards, Rocketman.

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

How can I keep my ammo count going over the cap? 1 Answer

First person shooter : Fight night champions dynamic health bar 0 Answers

GUI Bullet bar help 1 Answer

How do you create a Deus Ex Health System? 2 Answers

How to make a GUI or HUD 4 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