Creating a Simple Shield Effect in UE 5.1 with Niagara
Hi guys, I’m Ashif Ali, and you’re watching CGHOW! In today’s video, I’ll guide you through creating a simple shield effect in Unreal Engine 5.1 using Niagara. This tutorial will be from scratch, so let’s dive right in! If you haven’t subscribed yet, please do so, and don’t forget to hit the bell icon for notifications on new videos!
Getting Started with UE 5.1
Project Setup I’m working with the Third Person template in Unreal Engine 5.1. This will be the base for our effect. First, let’s create the necessary folder structure for the effect.
Creating the Niagara Effect Inside the FX folder, create a new Niagara effect. In this tutorial, we’ll use a particle system to simulate the shield.
Adding the Effect to the Player Go to your third-person player blueprint, and drag the Niagara effect into it. You can directly connect the Niagara particle to the mesh.
Controlling the Effect with Input We’ll trigger the shield effect with the left mouse button.
Disable Auto Activate: In the Niagara properties, disable auto-activation so the effect doesn’t start by default.
Activating on Button Press: Using the left mouse button, we can activate the effect.
Deactivating the Effect After the shield activates, we can add a delay of 2 seconds to automatically deactivate the effect.
Adjusting the Shield Size and Position For the shield, we need a cylinder mesh without a cap. After adding the cylinder mesh, adjust the scale to match the desired effect. Set the size to 50x50x20 for visibility.
Making the Effect Local to the Player By default, the shield effect isn’t local to the player. To make it follow the player, set it to “local” in the Niagara settings.
Creating the Material for the Shield
Material Setup Create a new material for the shield mesh. Use the texture coordinates and apply a gradient to make the top part of the shield fade out. This gives it a more dynamic look.
Adjusting Material Appearance
Use a two-sided material with particle color applied.
Make the shield color green to match the effect.
Optionally, adjust exposure and lighting for a better visual outcome.
Adding Rings and Additional Effects
Adding Rings To add rings around the shield, duplicate and resize them to fit. I used a simple ring material with radial symmetry, where the material subtracts one texture from another to create a glowing effect.
Animating the Rings Using a custom curve, animate the rings to grow when the shield is active and disappear after 2 seconds.
Final Touches: Adding Light and Enhancing the Effect
Adding Light to the Bottom Ring To make the shield more dynamic, add a light to the bottom ring. Use a light that fades in and out as the shield is active. Adjust the color to make it a vibrant green to match the shield effect.
Final Tweaks Adjust the light’s size, position, and fade-out behavior for smoother transitions. You can also apply noise for added detail and movement to the grid effect for extra dynamism.
Conclusion
This tutorial covers the basics of creating a simple shield effect using Niagara in Unreal Engine 5.1. It includes creating a particle system, controlling its activation, adding material effects, and enhancing the visual impact with rings and lighting.
If you found this tutorial helpful, don’t forget to like, share, and comment below. Also, subscribe for more tutorials like this. Thanks for watching, and I’ll see you in the next video!
I am Ashif Ali, Real-Time VFX Artist, I make Unreal Engine Niagara Tutorial on this channel. I've made it my mission to share my knowledge and expertise with the world through my YouTube channel. So why not join me on this exciting adventure? Follow me on my social links, subscribe to my channel, and support my growth as a creator. Together, we can create amazing things and take our skills to new heights. And who knows, you might even get access to some of my exclusive files for free!