Article directory
1. Achieve goals
The object effect is realized in UE5 边缘高亮
, and different colors are displayed on the edge when it is blocked, and when it reaches the edge of the viewport, the part where the object intersects with the edge of the viewport will also be highlighted.
2. Implementation process
There are usually two ways to achieve the edge highlighting effect of an object in UE. One is
基于后处理实现
to set a custom depth value, based on the edge detection principle, and set different stroke styles for different objects according to different template values set; The other is基于Mesh实现
to copy the Actor's Mesh again and scale it up slightly to achieve the outline effect.
In this article, we first briefly looked at how some UE editors can achieve the highlighted stroke of the selected object, and then