Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 Pipioca · Sep 26, 2017 at 07:13 PM · unity5load scene

LoadScene do not work well

Hi!

I am testing a plattform game. In a lot of devices run ok but in some phones or tablets, when i click "Start" in the main scene don't load good the next scene. When i click start, the game scene is superimposed on the main and does not look good.

The code it's this.. void CargarEscenaJuego(){ SceneManager.UnloadSceneAsync("Nivel0 - Inicio"); SceneManager.LoadScene (EscenaACargar, LoadSceneMode.Single); } Can anybody help me, please?

Thanks a lot!

Regards!

Comment
Add comment · Show 2
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 MaxGuernseyIII · Sep 26, 2017 at 08:02 PM 0
Share

Please clean up that code by pasting it into a code block. Click the little icon that looks like 1's and 0's, then paste the code into the resulting box.

avatar image cmeow176 · Mar 13 at 02:44 PM 0
Share

I run into the problem of Unity not moving the player to the next scene when I use single mode. Do you guys just have the player in every scene? I'm trying to figure this out...

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by MaxGuernseyIII · Sep 26, 2017 at 08:13 PM

It's really hard to guess what might be wrong from what you are telling us but, given the available information, I'll hazard one anyway.

I think maybe the fact that you are kicking off an asynchronous unload followed by a synchronous load could be the issue. When I tried code like that, I got a warning that unloading the last loaded scene was not supported. You're loading the new scene in Single mode.

Why not try just loading the new scene and let Unity worry about destroying the old one?

 void CargarEscenaJuego()
 {
   SceneManager.LoadScene (EscenaACargar, LoadSceneMode.Single);
 }

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 Pipioca · Sep 27, 2017 at 04:27 PM

Thank you MaxGuernseyIII!

In a first momento i has this code, only SceneManager.LoadScene (EscenaACargar, LoadSceneMode.Single) but it is the same.

don't appears on all devices but in some of them yes. It is an example:

Main scene: alt text

And when i click START... The scene is frozen and the other appears in the background alt text

Reallym thank you so much!


error-inicio1.jpg (48.2 kB)
error-inicio2.jpg (55.9 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

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

80 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

Related Questions

Trying to figure out tags, 1 Answer

Unity Multiplayer aka UNET aka Unity Networking 1 Answer

Delay when loading new level :( 1 Answer

Why does my pause & quit menus appear when I load next level? 0 Answers

Unity.Networking (UNet) RPC to Specific Player? Master Server? 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