Unity web のゲームを制作しています。シーンを移動して、部屋移動をしたいです。web版のUnityではシーン移動はできますか?
エラーメッセージはこれです。
ArgumentException: INTERNAL_CALL_GetActiveScene 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.
UnityEngine.SceneManagement.SceneManager.GetActiveScene () (at C:/buildslave/unity/build/artifacts/generated/common/runtime/SceneManagerBindings.gen.cs:33)
Seni..ctor ()
遷移はSceneManager.LoadScene("部屋の名前");で行っています。
部屋(シーン)は6つほどあります。
webで動かすと遷移のところで止まってしまい、一切動かないです。
ただ重いだけなのかわからないので、webでシーン移動できるかだけでも教えてほしいです。お願いします。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/06/13 12:09