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

Collider 2D Box [Component]

This Component is part of BG Spline Colliders

Description

Generates a set of 2D Box colliders along 2D spline. The spline should be in XY 2D mode. Note, there should not be any GameObject with 2D Box colliders immediately under the spline object, cause it's reusing them for it's own need. If by some reason you need some independent GameObject with 2D BoxCollider under the spline, place it under another object without BoxCollider.

Parameters

splitMode

partsTotal

partsPerSection

doNotOptimizeStraightLines

height

heightOffset

lengthExtends

maxNumberOfColliders

isTrigger

material

usedByEffector

effector

prefab

inheritLayer

layer

showHandles

spheresScale

spheresColor

spheresCount

showIfNotSelected

collidersColor