- Home /
Title Screen loading animation not looped
Hello!
All my other loading screens are working properly and looping nicely, but my title screen one just does it's cycle once and then freezes. And I copied one of the working loading screens to the title screen so it should be exactly the same as the other working loading screens.
void Awake () {
if (PlayerPrefs.Haskey ("Nickname")) {
invoke ("MainMenu", 3);
}
}
void MainMenu () {
loadScreen.SetActive (true);
Application.LoadLevelAsync ("Main Menu");
}
@$$anonymous$$dRWaylander It is my loading screen gameobject.
Answer by John_Chantzis · May 10, 2015 at 10:30 PM
Are you using animations? Then make sure your animation settings specify it should Loop. You can do that by selecting your animation clip in the project assets and edit it's preferences in the Unity Editor on the right.
If that didn't fix it, try to provide more details about your problem.
The same loading screen is looped in other scenes. It seems like the title screen's loading screen is the only loading screen that freezes after first loop.
Are you trying this on the Editor? If yes, try building the project and using the build ins$$anonymous$$d. forum
Yes I am trying it in the build! All other loading screens work but not the Title Screen one. :(
Well, there is nothing wrong with the code you posted. I would look at other parts that affect the loading screen and might make it freeze. Try creating an empty project and testing the loading screen there.
Your answer
Follow this Question
Related Questions
LoadLevelAsync is acting like LoadLevel 5 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Facebook Interaction LoadLevelAsync Progress Freezes 0 Answers