|
Post by hairgrow on Dec 28, 2020 16:32:49 GMT
So I recently purchased CGK and have been following the Quick Start guides. I'm currently focusing on the Custom Events for Triggered Spawners have been receiving this error:
MissingReferenceException: The object of type 'TriggeredSpawnerV2' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. UnityEngine.Component.GetComponent[T] () (at <2feaf16e80004e0cadae3f2e05f2a3fa>:0) DarkTonic.CoreGameKit.TriggeredSpawnerV2.get_Trans () (at Assets/Plugins/DarkTonic/CoreGameKit/Scripts/Spawners/TriggeredSpawnerV2.cs:4616) I followed the instruction from Quick Start 4 and was able to get it to work the first time, but when I try repeating the same steps I getting the above error. When I start from scratch in creating the LevelWaveSettings with Global Waves and setting up the Triggered Spawner, it does indeed work the very first time you run the scene. But once I stop play mode and then it again for the 2nd time, without changing anything, I get the Missing Reference Exception error. Any assistance would be great.
|
|
|
Post by DarkTonic Dev on Dec 29, 2020 0:23:16 GMT
Hi, you sent an email as well, which I replied to this morning. Putting the reply here as well:
What version of Unity are you using, and what platform is your build settings set to?
With this info, I can try and reproduce the error. Or you could send us the Scene in question along with that info.
Thanks! -Brian
P.S. Nothing is destroyed except if you change Scenes or perhaps when you press stop in Unity.
|
|