- Home /
HELP Game Scene 8 (-1) Cannot be loaded because it has not been added to the build settings
Ok so I added eight scenes into Unity's build settings and I have a script
function OnCollisionEnter(col : Collision) {
Application.LoadLevel ("UnityOutsetIslandBlockETGameScene8");
}
So that when I step on a block I load a new scene. But when I step on the block to load the new scene I get an error that says
"Level UnityOutsetIslandBlockETGamescene8 (-1) cannot be loaded because it hasnt been added to the build settings."
This Script works with all the other blocks I put the script on and changed the name to the levels.
I already added it to the build settings and I tried moving it around so it can be negative one but it wont go behind zero What should I do??????
Answer by fir3st0rm9 · Jan 28, 2013 at 04:32 AM
Application.LoadLevel() just uses the level index number not the name. To use the name use the function Application.LoadLevelName()
Your answer
Follow this Question
Related Questions
Loading player location in a scene 2 Answers
obb apk scene load fail 1 Answer
My life counter is not updating 1 Answer
Load Scene 1 Answer
Building scenes and load time 1 Answer