Answer the question
In order to leave comments, you need to log in
How to fix unity spawner bug?
How to fix this error
NullReferenceException: Object reference not set to an instance of an object
at JunkPile.ServerInit () [0x00000] in :0
at BaseNetworkable.Spawn () [0x00000] in :0
at SpawnHandler.Spawn (.SpawnPopulation population, .SpawnDistribution distribution, Vector3 pos, Quaternion rot) [0x00000] in :0
at SpawnHandler.Spawn (.SpawnPopulation population, .SpawnDistribution distribution, Int32 targetCount, Int32 numToFill, Int32 numToTry) [0x00000] in :0
at SpawnHandler.SpawnInitial (.SpawnPopulation population, .SpawnDistribution distribution) [0x00000] in :0
at SpawnHandler.InitialSpawn () [0x00000] in :0
at ServerMgr.Initialize (Boolean loadSave, System.String saveFile, Boolean allowOutOfDateSaves, Boolean skipInitialSpawn) [0x00000] in :0
at Bootstrap+c__Iterator2.MoveNext () [0x00000] in :0
at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in :0
Answer the question
In order to leave comments, you need to log in
This error occurs when you access an element that you haven't created yet. Those. to some instance of a class that you haven't initialized yet. So there is no simple answer WHAT TO DO
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question