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 /
avatar image
0
Question by Chris100100 · Feb 18, 2016 at 08:13 AM · bugbuild-errorscene-loadingbuild settingsincorrect

Unity build not loading correct scene 0

I have exactly one scene in the build settings, that being the scene that is currently open. When I build, however, a completely different scene is built. I know how Unity works, I've been using it for years, so it's not because my build settings are wrong or because I accidentally added the incorrect scene to the build.

I've tried building multiple times for different platforms, I've restarted the engine several times and I've restarted my computer, so I'm not sure what else I could do. It makes working on scenes feel worthless as I wouldn't be able to build them.

If it makes a difference, I used the "delete" key to remove the scenes from the build settings and one of them could have been active(checked) while I deleted them, which may be the cause of the problem. I'm not sure how I'd go about fixing this issue if this is, in fact, my problem.

Any help or suggestion would be greatly appreciated.

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 Chris100100 · Feb 18, 2016 at 08:53 AM 0
Share

Turns out the results vary depending on the way the build is opened. If I rick click to chose to run it with a specific gpu, the game will run the wrong map, but if I just double click to open the program, it will run the correct map. I've never had this problem before, and it's so strange.

avatar image misher · Jul 06, 2019 at 07:30 AM 0
Share

Try to delete build settings from the folder...

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Chris100100 · Apr 10, 2016 at 12:17 AM

I tried updating and reinstalling Unity with no luck, leading me to believe that it was an error with the build settings in the project itself. After exporting all of the assets into a package and making a new project and importing the package again, everything worked.

What might have happened was that I tried to remove the list of inactive scenes from the build settings by pressing the delete key and doing that might have caused an error. So if this ever happens to everyone, this is a workaround to fixing the problem. You'll need to reset all of your tags and layers, but afterwards, everything will work as planned!

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 nkmxzhang · Feb 18, 2016 at 11:39 AM

try to print build setting scene.

for(int i = 0; i < EditorBuildSettings.scenes.Length; i++) { Debug.Log (string.Format("scene {0} enabled: {1}", EditorBuildSettings.scenes[i].path, EditorBuildSettings.scenes[i].enabled)); }

Comment
Add comment · 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 Chris100100 · Feb 19, 2016 at 07:37 PM 0
Share

I'm not sure I understand, how would I go about doing that?

avatar image nkmxzhang Chris100100 · Feb 22, 2016 at 08:32 AM 0
Share

I means maybe you can output EditorBuildSettings.scenes content in scripts to get more useful information.

avatar image Chris100100 nkmxzhang · Apr 10, 2016 at 12:18 AM 0
Share

It turns out that exporting all the assets as a Unity package and importing them all into a new project fixed the problem.

Show more comments
avatar image
0

Answer by Mobazy · Jul 06, 2019 at 02:55 AM

  1. File --> Build Settings.

  2. Right Click Scenes not loading --> Remove Selection.

  3. Drag Scene Back into position.

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

38 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

Related Questions

Scene could not be loaded even though it is in build settings 0 Answers

Unity Game Crashes After Clicking Play In Settings Menu [MAC] 1 Answer

How can I build my game in Android Device? some Sprites are not rendering..,Is there something can I do to render this game in android build? 0 Answers

UnityWebRequestMultimedia.GetAudioClip dont't work in WebGL build (2019.3.15f1). 1 Answer

Can't add scene to build setting 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