Quick answer: Clear spawned content at top of Construction Script. Pure visual setup belongs here; gameplay in BeginPlay.
Spline-based fence with Add Mesh in Construction Script. Each tweak adds another set; mesh count grows with every property change.
The Fix
Construction Script:
For Each Loop: Get All Child Components
Destroy Component (Target = current)
For Each in Spline Points (i):
Add Static Mesh Component
Set Static Mesh = FenceMesh
Set Relative Location = Spline.GetLocationAtSplinePoint(i)
Idempotent: clear, then re-spawn from spline. Each Construction run produces the same result regardless of how many times it's invoked.
Verifying
Edit spline points. Mesh count stays at point count, no growth. Without clear: meshes accumulate.
“Clear first. Build clean. Idempotent.”
Related Issues
For Event Dispatcher in Construct, see dispatcher in construct. For BP Add Unique, see add unique.
Clear before build. Idempotent.