Unity provides standard spline asset, use BGCurve only if Unity spline misses some feature

BGCcSweep2D [Component]

Description

Sweep a line or 2D spline(profile) along another 2D spline. This component has serious limitations (please, read below)

How it works?

Cross spline is duplicated at each split point along the main spline. The direction is calculated as cross product of Up vector and spline's tangent

Limitations

This component has 2 very serious limitations:
  1. 1) Both splines should be in 2D mode
  2. 2) At steep curves generated polygons may overlap (and mesh looks like broken)
Due to these limitations, this component has very limited use scenarios, but it still can be used as an example for building your own procedural meshes.

Parameters

splitMode

doNotOptimizeStraightLines

profileMode

profileSpline

uCoordinateStart

uCoordinateEnd

swapUV

swapNormals

vCoordinateScale

showHandles

spheresScale

spheresColor

spheresCount