- Home /
Problem LoadLevel
Hi guys! When I build my game, as the first scenes, I put 2 video that presenting the game. For loading the second video, at the first I put this script:
using UnityEngine;
using System.Collections;
public class Loading : MonoBehaviour {
void onGUI() {
Application.LoadLevel("Gioco");
Screen.showCursor = false;
}
}
But doesn't load the second scene.. when the first video is finished, hangs there.. How can I do? :/
$$anonymous$$ake sure that the second scene is added to the "Scenes in build" list in the Build Settings window.
Of course, all scenes are added to the "Scenes in build"..
Try not putting the LoadLevel call in OnGUI() Also, the way you have written it... you are creating a new function onGUI(), not using the OnGUI()
If I change with void Update, jumps to the next level without showing the current scene.. please help me :/
As @meat5000 says, change onGUI() to OnGUI(). (Capitalize the 'O')
Answer by VIPINSIRWANI · Aug 23, 2013 at 10:46 AM
You can change the script Execution Order by Edit.> Project Setting May be your code will work....
Your answer
Follow this Question
Related Questions
Input.GetMouseButton on multiple objects 1 Answer
Application.LoadLevel not working 1 Answer
[SOLVED]cant load lvl and i cannot figure out why. 1 Answer
how to load random level but one? 3 Answers
i need help making a log in system 0 Answers