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 /
  • Help Room /
This question was closed Nov 26, 2017 at 11:50 PM by NEGATIVERAGDOLL for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by NEGATIVERAGDOLL · Nov 24, 2017 at 08:49 PM · script.scene-loadingloading screen

Loading screen

Hello, I am trying to make a loading screen between two scenes (Main menu & Game Scene) how can I do this? I have watched most tutorials but they always add ui and I do not want that. I just need a script which will transition between the scenes once you press "Play" on the main menu. I would also like to be able to add an image over the screen while it is loading! Thank you! :)

Comment
Add comment · Show 10
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 shakecaine · Nov 25, 2017 at 12:34 PM 0
Share

There is something i don't understand. How you expect to add an image without UI? Image is part of UI man.
If you want to load a scene then there is everything you need to write it yourself: https://docs.unity3d.com/ScriptReference/Scene$$anonymous$$anagement.Scene$$anonymous$$anager.html
If you have any problems, you can come back and ask.

avatar image NEGATIVERAGDOLL shakecaine · Nov 25, 2017 at 02:14 PM 0
Share

I messed up in the writing. I do not want what most people add(the scroller loading bar) that is what I was referring too when I said “UI”. I have an understanding of scene management but I still do not know how to achieve a loading screen that will work without having a “fake loading screen”(one that says loading but you have to press another button to load the actual game scene).

avatar image shakecaine NEGATIVERAGDOLL · Nov 26, 2017 at 10:31 AM 0
Share

I still don't exactly get what you want to achieve. If you want really fake loading screen just manipulate your UI in menu and change text or background image while still being in menu scene. Finally write a script that detects any input(or your button) and load next scene.

Show more comments

1 Reply

  • Sort: 
avatar image
0
Best Answer

Answer by shakecaine · Nov 26, 2017 at 11:27 PM

There is no simple answer to this question but series of comments that helped the author. This comment was most helpful though i presume. So i quote:
You can do that with LoadSceneAsync and AsyncOperation by setting the flag(boolean value) allowActivation to false. It will load 90% of the scene in background and wait to change the flag. This way you can control scene loading. Without that Unity itself just loads scene when you invoke LoadScene function. Activating LoadScene from the button is the same as doing that from another function in your own script as you will also use LoadScene but have more control over what you want to do before switching to new scene. Although you still have little control when the scene is loaded besides that allowActivation flag. What happens is that when you invoke LoadScene Unity thinks you want to change the scene and does that if that is Async it does not freeze your game as that is background task but will still change scene once it loads. That is how i do it. Don't take exactly what is written there but you can be influenced by it. alt text
This way i halt scene activation but you have to remember when you stop scene in editor when scene isn't fully loaded Unity will CRASH.


screenshot-3.png (8.5 kB)
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

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

Related Questions

how to fix countdown bug after reset level? 0 Answers

How to run a script twice in a scene 0 Answers

Loading a scene with script loads multiple copies of another scene, the crashes Unity 0 Answers

Instantiate after loading scene 0 Answers

Scene doesn't work 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