In this tutorial, we’ll build an outline shader from scratch using Unreal Engine 5’s Material Editor and then apply it to the entire level.
https://dev.epicgames.com/community/learning/tutorials/VL176/unreal-engine-fortnite-this-simple-ue5-shader-makes-objects-stand-out-tutorial