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 niraj · Aug 27, 2014 at 11:05 AM · scene

BackGround of Last Scene Visible in New Loaded Scene. How to Fix?

Hello Developers,

I stuck in a problem. I have 2 scenes in my unity project. Player start with loading the scene 1 as usual and there is a button to click and load scene 2. But when scene2 is getting loaded the background of last scene still visible in the new loaded scene. I can't figure out Why this is happening. Please help me.

Thanks and Regards Niraj Vishwakarma

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 Klarax · Aug 27, 2014 at 12:04 PM 1
Share

cant you destroy it before it 'unloads'

avatar image revolute · Aug 27, 2014 at 12:43 PM 0
Share

Any chance that you are using LoadLevelAdditive?

avatar image niraj · Aug 27, 2014 at 01:46 PM 0
Share

@$$anonymous$$larax: What to destroy, entire scene?

@revolute: I am using LoadLevelAsync();

AsyncOperation async = Application.LoadLevelAsync(5);

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by smoggach · Aug 27, 2014 at 01:32 PM

Maybe it's one of these:

1) New levels are loaded at 0,0,0. If you are loading additively and you don't want the new scene to appear over the old one, you can move the current scene along with the camera off to one side while it loads, then back again.

2) Layers, Sorting Layers, and Sorting Order. Even though they are two different scenes they still exist in the same world. That means if you have something in the first level with a higher layer than something on the second level it will be displayed in front.

Comment
Add comment · Show 3 · 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 niraj · Aug 27, 2014 at 01:47 PM 0
Share

@smoggach: I see, let me try with your suggestion and i am definitely get back with feedback. Thanks.

avatar image smoggach · Aug 27, 2014 at 02:10 PM 0
Share

OH, it's because you're using LoadLevelAsync. It's loading one part at a time while it also updates the current scene. You can fix your problem by simply moving your current scene off to one side while it does this.

avatar image niraj · Aug 28, 2014 at 11:11 AM 0
Share

@smoggach, Ohh Let me try it, i will let you know for sure :)

avatar image
0

Answer by niraj · Aug 30, 2014 at 02:04 PM

@Klarax and @smoggach : Thank you very much for you kind suggestions. What i simply did, i destroyed the background object since it was just a plane. So i just destroyed the background plane before loading the next scene.

Thanks and Regards Niraj Vishwakarma

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

25 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

Related Questions

A node in a childnode? 1 Answer

How do I make a scene change when my Player collides with a item? 1 Answer

Networking - Serving multiple instances of a scene. 0 Answers

Opacity from 3ds max doesn't show up 2 Answers

Remembering the state of a scene 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