How to Instantiate decals where particles from particle system hits?

I want to Instantiate decals where particles die or collide but I don’t know how to do so, I have decal ready but have no idea how to write code about particle system.

In your ParticleSystem, you need to enable the checkbox for Collision. Then check out: OnParticleCollision. In that event you can Instantiate a GameObject that contains the texture/decal, and then set the new GameObject’s Transform’s position and rotation to match the point of collision provided in the intersection property.