You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
gclsoft
changed the title
Change scene error: get_loadedLevel can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
Change scene error: get_loadedLevel can only be called from the main thread.
Jul 12, 2014
Here is what I did to fix the issue. Instead of calling it Application.loadscene in Entry (which is obsolete by the way, use SceneManager instead), do it in update instead. Just have a boolean that you can toggle. Example:
Press login and can't change scene:
The text was updated successfully, but these errors were encountered: