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 /
This question was closed Oct 15, 2013 at 08:33 AM by Fattie for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by orochi663 · Mar 26, 2012 at 11:09 PM · guitexturescenemultithreadingloading screen

Inter Scene Loading Screen Animation

Hi, I have implemented a Loading screen animation using GUITextures. I load the next level using Async Loader and check in onGUI that if asyncLoader.isdone is true. The problem is It animates well but then it found isdone = true while scene is not switched completely and screen freezes for just those moments.

Is there a way to overcome this. Can i know when the Actual Scene transition has finished ?

I think showing an animation in a separate thread that persist for both scene might be the solution but i just don't know how to implement such a thread that can be started parallel when next scene started loading and finish it when the loading is "Actual Finished".

Can Anyone Help ?

Regards,

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

3 Replies

  • Sort: 
avatar image
0
Best Answer

Answer by orochi663 · Oct 15, 2013 at 08:33 AM

Well, I found the solution: Use LoadLevelAsync using Async Operation, but there will always be a switching delay.

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 DaveA · Mar 26, 2012 at 11:28 PM

You could have a Start script in the newly-loaded level signal that fact.

Comment
Add comment · Show 2 · 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 orochi663 · Mar 27, 2012 at 12:40 AM 0
Share

Yes for the time being i am doing it. But this is not actual solution as animation do hang up just before second scene render started. I even signaled animation after 10 frames of next loading level but the halt is quite noticeable. and in this case it halts just before loading continues for 10 more frames. I just want to get rid of halting :S

avatar image orochi663 · Dec 15, 2012 at 09:41 PM 0
Share

Still no solution to the hang while scene switching issue :(

avatar image
0

Answer by IndieScapeGames · Mar 27, 2012 at 12:06 AM

Here's a bit of code that might do what you want:

 void Start() {
 Application.LoadLevel (levelToChange);
 }

Now, this is in C#, so you will have to create your own script, but this should help. There are numerous things you can do during this load screen if you want, just include a few method calls.

For example say we want some background music to play, just create another method that will play the audio you wish.

 void exampleMusic() {
 audio.Play();
 }

This is the method you want, you'll need to create an audio source or something similar, and either have a private variable for an audio clip, or a public, so that way each level loading screen will have unique music.

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

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 to make loading screens? 1 Answer

Selection box - Borders scaling when selection box size grows 1 Answer

How to create a GUI like Zombieville? 1 Answer

How to create a new scene and load it through c# script ?,How to create a new scene and load it through c# script 1 Answer

Help with cameras and enabling/disabling GUItextures? 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