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 marflaounas · Oct 26, 2020 at 07:45 AM · loadingbuild settingsaddnotworking

unity is saying the build settings has not been added even though it has. help??

The error is: Scene with build index: "Scene with build index: 1 couldn't be loaded because it has not been added to the build settings. To add a scene to the build settings use the menu File->Build Settings... UnityEngine.Application:LoadLevel(Int32) menuscriptcchh:StartLevel() (at Assets/Standard Assets/ParticleSystems/Scripts/menuscriptcchh.cs:36) UnityEngine.EventSystems.EventSystem:Update() "

I have already added it to the build settings and I clicked build. Does anyone know why it isnt working???alt text alt text

6e1b76ea-c873-42e9-bb76-b0db9b43dc7e.png (73.3 kB)
ffc8af47-89b0-4153-b210-97ed98337add.png (189.1 kB)
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

· Add your reply
  • Sort: 
avatar image
0

Answer by Gamestroyer · Oct 26, 2020 at 08:01 AM

You don't have a scene with build index 1, I think you meant to load scene: 0 because you only have that scene.

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 Kofiro · Oct 26, 2020 at 08:04 AM

Kindly check line 36 of your menuscriptcchh.cs script. The error seems to be from there.

If you can send a screenshot of that line, that would be helpful as well.

Comment
Add comment · Show 1 · 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 marflaounas · Oct 26, 2020 at 08:19 AM 0
Share

it isnt letting me send it seperately. so ive copied it and the script and the line with the asterisks on either side of it is line 36.

using UnityEngine; using UnityEngine.UI; using System.Collections;

public class menuscriptcchh : $$anonymous$$onoBehaviour {

 public Canvas quit$$anonymous$$enu;
 public Button startText;
 public Button exitText;
 // Use this for initialization
 void Start()
 {
     quit$$anonymous$$enu = quit$$anonymous$$enu.GetComponent<Canvas>();
     startText = startText.GetComponent<Button>();
     exitText = exitText.GetComponent<Button>();
     quit$$anonymous$$enu.enabled = false;
 }

 // Update is called once per frame
 public void ExitPress()
 {
     quit$$anonymous$$enu.enabled = true;
     startText.enabled = false;
     exitText.enabled = false;

 }
 public void NoPress()
 {
     quit$$anonymous$$enu.enabled = false;
     startText.enabled = true;
     exitText.enabled = true;
 }
 public void StartLevel()
 {
     **Application.LoadLevel(1);**
 }
 public void ExitGame()
 {
     Application.Quit();
 }

}.

avatar image
0

Answer by marflaounas · Oct 26, 2020 at 08:07 AM

@Gamestroyer ohh okay thank makes sense. does this mean that my scenes aren't added to the build yet. I have been told that I have to drag the scenes that I want in the game from the project window into "scenes and build", but it only lets me drag the "vetgame" one. Is there something else that I have to do in the Build Settings that will allow me to press the buttons for the game, if so, can you tell me how to do it.

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 Gamestroyer · Oct 26, 2020 at 08:12 AM 0
Share

If you have other scenes and you are not able to drag them in the build setting, try to close unity and reopen it. Unity sometimes glitches.

avatar image marflaounas Gamestroyer · Oct 26, 2020 at 10:23 AM 0
Share

i tried that but when i drag the "vetgame" from the project manager to the Build Settings, it still says it is 0

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

140 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 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

Small game hangs on start, skipping unity splash screen. 0 Answers

Loading new missions for RPG from SQL Database 1 Answer

CSharp Pre-Loader, how get Load status? 1 Answer

Help with Exception: Error building Player on Android 2 Answers

Loading Scree 2 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