【Unity】RandomRangeInt can only be called from the main thread.

using UnityEngine; public class Player : MonoBehaviour { private int mValue = Random.Range( 0, 10 ); } このように変数初期化子でRandom.Range関数を使用すると 下記のようなエラーが発生します RandomRangeInt can only be called from the main thread. Constructors and field initializers will be executed fro…