Hello,
I am having trouble loading a scene via name.
All my scenes are in a ‘Levels’ folder in the main Assets folder.
I have added the scene to the ‘Build Settings’.
I can load the scene if I use:
Application.LoadLevel(1);
but if I use:
Application.LoadLevel("Levels/Attic-1-01");
I get the error:
Level ‘Levels/Attic-1-01’ (-1) couldn’t be loaded because it has not been added to the build settings.
To add a level to the build settings use the menu File->Build Settings…
But according to that dialog, it’s already there.
Can someone show me the correct syntax or setup?
If it makes a difference, I am using NGUI UIButtonMessage to call a PlayGame() function that just wraps the Application.LoadLevel call. But I really don’t see how that could be affecting the Application object
Many thanks in advance for any help, this is driving me crazy.