I created this force shield material in Unreal Engine 5, following Unreal CG's latest tutorial from YouTube (https://youtu.be/8QI6WLbrFEY?si=x2cnPb7kOSdLqnnv). However, I added some changes to avoid using a mesh for the target, and instead use the sphere mask for the location target, used blueprints to code on component hit, and limit the visibility of the shader with parameters.
This was a complex shader due to its many functions and parameters, but honestly, I learned a lot and will apply what I know now in future materials!
Force shield effect in action using first person projectile