- Home /
Bullet Surface Impact particle system
Hi guys, im trying to create a particle system that will appear on my bullet hole decal. please explain how i would create this effect for different surfaces or just one generic one i could play with. do feel free to share a prefab if possible.
Answer by aldonaletto · May 26, 2013 at 02:52 PM
A common way to do that is to tag the objects according to their materials, like "Wood", "Metal", "Flesh", "Water" etc. You should have one specific particle prefab and one (or more) bullet hole image for each material. When something is hit, check its tag to decide which particle and bullet hole to instantiate. The script posted in this question does that, and you can get a more complete example in the Bootcamp demo - it has several bullet holes for each material, and randomly select one of them for each hit.
thank you. i learnt the tricks from boot camp demo, couldnt run it on unity 4 tho
Your answer
![](https://koobas.hobune.stream/wayback/20220613102925im_/https://answers.unity.com/themes/thub/images/avi.jpg)