I have tried to implement Detonator system in my project because it is very impressive.
I have followed the instructions, using a prefab from the Detonator example prefabs and the same method to instantiate and them destroy the explosion but It doesn’t work, and I get the error:
“NullReferenceException: Object reference not set to an instance of an object”
The case is I have tried the sample scene and it works…:?
I don’t know what is happening.
I have Unity Pro.
It is said the issue being that Detonator uses a shader available only in the Pro version (HeatDistort), but the case is I have Unity Pro version… :?
Make sure you have the latest version, 1.02. I fixed that shader so it should properly deal with both indie and and non-pixel shader capable video cards on pro.
NullReferenceException: Object reference not set to an instance of an object
DetonatorFireball.UpdateFireShadow () (at Assets\Detonator\System\DetonatorFireball.cs:158)
DetonatorFireball.Explode () (at Assets\Detonator\System\DetonatorFireball.cs:195)
Detonator.Explode () (at Assets\Detonator\System\Detonator.cs:322)
Detonator.Start () (at Assets\Detonator\System\Detonator.cs:267)
Once I take out the fireball I get this:
NullReferenceException: Object reference not set to an instance of an object
DetonatorSmoke.UpdateSmokeA () (at Assets\Detonator\System\DetonatorSmoke.cs:1)
DetonatorSmoke.Explode () (at Assets\Detonator\System\DetonatorSmoke.cs:1)
Detonator.Explode () (at Assets\Detonator\System\Detonator.cs:322)
Detonator.Start () (at Assets\Detonator\System\Detonator.cs:267)
So I take the smoke out and it works fine, but it looks terrible.
…aahh MainCamera… shite, that’s exactly what happened. Anyway we can avoid this Ben? I have multiple cameras, and only one marked as main. It’s disabled when the ChaseCam is enabled of course and boom… now I have this error: