
in this video i have created a cannon shot effect in unreal engine niagara and you can shot with mouse control and also rotate cannon with keyboard shortcut.
…………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
●Patreon – https://www.patreon.com/Ashif
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………………………
Cannon Shot Effect in Unreal Engine Niagara
This tutorial shows how to build a cannon shot effect in Unreal Engine 4 Niagara that you can fire with mouse controls.
Use it for pirate ships, siege weapons and action games, and see the related posts below for more explosion effects.
More explosion effects: Explode FX · Stylized Explode · Toon Air Explosion
More like this: Projectile FX in UE4 Niagara · Orb with Spinning Rings in UE4 Niagara Tutorial








































Video Title: How I Created a Cannon Shot Effect in Unreal Engine Niagara VFX
Key Points Covered:
- Cannon Setup:
- Three parts of the cannon: main body, nozzle, and base.
- Animation setup using blueprint: scaling the nozzle on X-axis when firing and rotating the cannon with keyboard inputs.
- A particle system is attached to the nozzles, which triggers upon the left mouse click.
- Particle System Breakdown:
- Beam: The primary effect representing the cannon blast. Uses a thin, stretched particle with color changes from cyan to orange.
- Flash: Four flashes corresponding to each nozzle, using random planar rotations and color variations.
- Muzzle Black/Blue/Red: The muzzle effects are created using mesh renderers with noise and opacity masks. Each color has different scaling and velocity behaviors.
- Smoke: Connected to the nozzle, simulates the burst of smoke with upward movement and a linear animation.
- Spark Trail: Simulates fast-moving particles with some curl noise, giving the cannonball a realistic path.
- Path and Spot Trails: Creates fast-moving particles with conical spreading and a variety of noise to simulate the shockwave and spread of the shot.
- Collision and Gravity Effects: Certain particles (like sparks) include gravity and collision settings for realism.
- Blueprint Functionality:
- The “Fire Cannon” and “Rotate Cannon” functions are triggered by mouse clicks and keyboard presses.
- Rotation and scaling logic for the cannon is handled through custom events in the blueprint.
- Niagara particle emitters are used to trigger various effects like beams, flashes, and smoke from the cannon nozzle when the player fires.
- Adjusting Particle Behaviors:
- Detailed breakdown of different Niagara modules for beams, flashes, muzzle effects, smoke, and sparks.
- Explanation of the particle properties, such as spawn rate, velocity, size scaling, color transitions, and the usage of noise for randomness in the particle motion.
Additional Notes for Video Tutorial Description:
- This tutorial is ideal for Unreal Engine users who want to learn how to create complex weapon effects using Niagara.
- Make sure to download the particle assets provided in the description to follow along.
- Tips on optimizing particle systems for game performance are covered in the full tutorial.
Let me know if you need any further edits or details added to this description!
Frequently asked questions
How are firing and cannon rotation controlled in this UE4 Niagara setup?
Blueprint custom events trigger the nozzle-attached Niagara particle emitters on left mouse click while scaling the nozzle on the X-axis, and keyboard inputs control cannon rotation.
What particle layers make up the cannon shot effect in Niagara?
The effect combines a stretched beam emitter, four nozzle flashes, mesh-rendered black, blue, and red muzzle effects, upward nozzle smoke, a curl-noise spark trail, path and spot trails, and gravity and collision settings on sparks.
Where can I get the particle assets for this Cannon Shot tutorial?
You can access the particle assets and support the channel via Ashif Ali’s Patreon.


Leave a Reply