WonderForest It's an example shows how to add polygon collider to a line renderer prefab effects Reference source.