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

Collider 3D Box [Component]

This Component is part of BG Spline Colliders

Description

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

Parameters

splitMode

partsTotal

partsPerSection

doNotOptimizeStraightLines

width

height

heightOffset

lengthExtends

maxNumberOfColliders

isTrigger

material

prefab

inheritLayer

layer

showHandles

spheresScale

spheresColor

spheresCount

showIfNotSelected

collidersColor