How to outline a line2D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Stefoto

All the outline shaders Ive found online dont work on line2Ds. I know I could just duplicate the line2D and do show_behind_parent and make thicker, but Im wondering if its possible just with a shader as I just dont know enough about how to get the shaders to work.

I don’t know about shaders, but you could override the _draw() method and then use draw_polyline()

SteveSmith | 2023-02-17 18:05