Unassigned Reference Exception

Hi:

My Particle System is working fine on both levels for Success and Death (crash), but I’m getting this error in the console window. For both Particle effects.

UnassignedReferenceException: The variable successParticles of CollisionHandler has not been assigned.
You probably need to assign the successParticles variable of the CollisionHandler script in the inspector.

Hi,

Does the game object with the particle system get destroyed at some point? If so, that could be the reason for the error message.

Or there could be a superfluous component somewhere in your scene which tries to access a non-existing object.


See also:

I actually had the same problem and I solved it by adding the particle effects into the prefab rather than the game object on the left.

This was fixed. I had the collision handler script component on my rocket twice.
Thanks for the feed back.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms