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 rishabhvinod · Oct 01, 2013 at 06:05 AM ·

I want to add progress bar in my application, can anyone explain with one example.

Hi guys, I want to dispaly loader when my application is already performing one action, I want to show user a progress bar or anything similar of progress bar to show user please wait process is in progress.

Please it will great help for me if anyone explain me with some example

Thanks in advance

Comment
Add comment · Show 3
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 ShadoX · Oct 01, 2013 at 07:27 AM 0
Share

Hi, well, all you really need is a way to track the progress and display it in some visual form. Assu$$anonymous$$g that you know what value will deter$$anonymous$$e the progress displayed, all you really need is a way to know how to properly display the progress bar.

In this case, you'll could do just fine with a simple plane with a texture, that you scale according to the progress. You just have to remember that the size of the bar usually is a constant value while the progress itself might differ.

For example, you have to take probably at least 2 values into consideration when working on this: 1) actual value (for example, 500/500 would mean that the bar is full) 2) bar length on screen since it will depend on the progress and the screen resolution

You could either try to figure out how to code this yourself or try to look for examples, like..

http://answers.unity3d.com/questions/7846/how-do-i-make-a-progress-bar.html or http://answers.unity3d.com/questions/11892/how-would-you-make-an-energy-bar-loading-progress.html for example :)

avatar image rishabhvinod · Oct 01, 2013 at 09:12 AM 0
Share

@ ShadoX thanks for reply, shared links help but how I connect my progress bar with my process. I am fetching Data from server, progress bar should stop when process end. Please explain. Thanks in advance.

avatar image ShadoX · Oct 01, 2013 at 10:21 AM 0
Share

The general idea is that you have to know how much you're actually fetching from the server or else there's no real way of knowing when it's done. At last not in a way that would allow you to display a progress bar about the data being fetched.

Lets say, you're downloading a file. The only way the progress bar would work with that is, if it knows the file size and how much of it has been downloaded. (for example, downloading a 10 $$anonymous$$B file where you only have downloaded 1 $$anonymous$$B, would mean that the progress bar displays 10% as done)

So you most probably will want to get the size of the data that you're supposed to fetch and compare that value with the amount of data that is done fetching.

0 Replies

· Add your reply
  • Sort: 

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

15 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

Related Questions

How to draw an arrow from fps contoller 1 Answer

getting high score of game from asp.net page 2 Answers

,Roll a ball - project 0 Answers

Mathf.pingpong 4 Answers

colliders with touch 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