Sprite Factory

ReadMe
Release Notes
Overview
Using the Editor
Upgrading

Concepts
Sprites
Master Sprites
Sprite Groups
Colliders
Locators
Material Sets
SpriteUpdater
SpriteCamera

Advanced
Working in Multiple Projects

Classes
Runtime Classes

Videos
Overview
Creating Sprites
Sprite Inspector
Frame Events
Collision System
Locator System
Material Sets

Links
Sprite Factory Site
Web Documentation
Support
Contact

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.