- Home /
Scene switching problem
Hello! I have a problem with my unity project. There are some scenes, and when i try to switch for example from 3rd scene to 4th in the game, one of my scripts don't work in the 4th scene, but when i launch my 4th scene from editor, everything is ok..
please help me, i don't have any ideas ((
You'll have to give us more information about the script in question! Is there anything with 'dontDestroyOnLoad' involved?
syclamoth, no there isn't 'dontDestroyOnLoad'. There was a silly mistake) I simply blocked part of script because of if(Time.timeSinceLevelLoad % Frequency). Somehow it worked when I started level from editor, but it didn't when I started from another scene. I replace it by yield instructions, and everything is ok)
Your answer
Follow this Question
Related Questions
Does EditorBuildSettings.scenes use just the checkboxed scenes? 2 Answers
Problem when switching between scenes 0 Answers
Scripts mysteriously switching off at run time 0 Answers
I need to know how to switch to another scene while playing the game. Please Help i'm stuck. 1 Answer
Scripting Walking Sound Help? 1 Answer