SpriteFactory.SpriteCollider.OnParticleCollisionSprite
C#: void OnParticleCollisionSprite (SpriteFactory.SpriteCollider.CollisionData collisionData)
JS: function OnParticleCollisionSprite (collisionData : SpriteFactory.SpriteCollider.CollisionData) : void
Description
Called when a particle hits a collider (legacy particle system only). This message is sent to all component siblings of the Sprite which owns this SpriteCollider.
The collisionData object contains information about the collision. The collisionData.objectValue field contains a GameObject object.
This can be used to apply damage to a game object when hit by particles. The message is only sent if you enable sendCollisionMessage in the inspector of the WorldParticleCollider.