Hit Effect on our Attack

On our particle effect prefab, we want to add a sphere collider. Adjust the sphere collider to the size of the particle effect at your discretion.

Once you have the collider set how you like, set the collider to “Is Trigger” because this will trigger the next effect on collision.

The next step will be to create a new C# Script and we’ll name it AttackHit. This script will be set up as a triggerCollider to instantiate the particle effect that will play on collision.

I’ve set the collider to trigger when it collides with the tag “Enemy” so we’ll have to create a new tag in the Inspector and label it “Enemy.

Click Here

Tags: Attack Effect