• 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 /
  • Help Room /
avatar image
Question by KnightRiderGuy · Dec 20, 2015 at 02:59 PM · uicanvasloadingload sceneloading screen

Loading Bar For Each Canvas in a Scene

Is it possible too do this or even worth while to have a Loading Bar for each Camera and Canvas in a scene with lots of each?

I have a scene that has 8 Cameras assigned to 8 canvases each with panels, animations, sounds etcetera. Is it worth while to have another camera set as a loading screen that would show the progress of each camera scenario being loaded?

I thought it might be kind of a neat idea to have a loading screen with multiple loading bars but perhaps if they load super fast that this could be slowed down to some degree. I know that sounds kind of weird because usually you want things to load fast but my project is mostly GUI one big interactive user interface that is connected to an Arduino. So I was thinks of a way to make a "System Status" loading screen that showed the loading progress of each camera and canvas and each loading bar could be given a name and sound effects.

Something Like this

screen-shot-2015-12-20-at-90352-am.png (41.3 kB)
Comment

People who like this

0 Show 0
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 Reply

· Add your reply
  • Sort: 
avatar image

Answer by KdRWaylander · Dec 21, 2015 at 03:49 PM

Hi,

Since you would be adding this "System Status" Canvas in your scene ... when you'll see this canvas, it will mean that the others are loaded to, hence all the bars will be already full.

But i think i get your idea and here's a proposition:

  • start your scene on this "loading status" canvas

  • make loading bars with filled images (begin with fill ratio to 0)

  • animate or script (animate is definitly the best way) the fill ratio so it slowly raise to 100%

Now you have your bars filling up and you can decide/allow the user to switch to one of the 8 canvases whenever you want. Keep in mind that since everything is in the same scene, everything is already loaded, you just want to fake a loading process.

Comment

People who like this

0 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 KnightRiderGuy · Dec 21, 2015 at 04:06 PM 0
Share

@KdRWaylander, Thanks, I already have a scene like the one pictured here as a separate scene that pretty much does a "Fake" loading progress although I have the animations make it look like the bars are fluctuating. I was thinking of something more accurate but that could be slowed down just for aesthetic / visual purposes as like you say the scene would load, and does load pretty fast seeing as it's just one big series of canvas UI with panels and buttons and a number of slide in animated panels.

avatar image KdRWaylander KnightRiderGuy · Dec 22, 2015 at 08:51 AM 0
Share

If you want to be accurate you have to async load your scene and use AsyncOperation.progress as fill ratio for your image. And don't forget to use AsyncOperation.allowSceneActivation to have total control on switching between scenes.

On way you could try would be (but it's definitly not perfect, especially if the scene loads in less than a frame):

  • store at each frame the value of AsyncOperation.progress

  • after loading is done, read one value of your progressValuesArray every 2 seconds or so and update the progress bar

avatar image KnightRiderGuy KdRWaylander · Dec 22, 2015 at 03:03 PM 0
Share

I have heard about the AsyncOperation, I thought it did not work on the stand alone player and was only for the web player?

Show more comments

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

40 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 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

How to make a scene in charge of loading other scenes? 0 Answers

Sprite in Canvas not projected correctly in Maximum playmode 0 Answers

How can I change the UI button color when clicked 1 Answer

UI elements not visible on iPhone 5s 0 Answers

image for joystick by percentage of screen? 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