# Attach Object To Spline

**URL:** <https://forums.unrealengine.com/t/attach-object-to-spline/493571>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question, UE4-27\
**Created:** [February 2, 2022, 11:46pm UTC](https://forums.unrealengine.com/t/attach-object-to-spline/493571 "2022-02-02T23:46:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 3, 2022, 2:03pm UTC](https://forums.unrealengine.com/t/attach-object-to-spline/493571/4 "2022-02-03T14:03:51Z")

</div>

> [@Studio-237](#):
>
> but they all require it to function at run-time.

Wrap the distribution script in a function and use it the Construction Script - it will run outside PIE, in the editor. You can use the same function run-time, too.

Here’s a bunch of examples:

> [@Curve a series of objects](https://forums.unrealengine.com/t/curve-a-series-of-objects/471428/10):
>
> Ah, I think I’m getting a better picture of this. I run this event in the Construction Script: Do note how the components are now added to a Static Mesh Component array so we can keep track of them. This allows me to preview the result in the world and manipulate the spline any way I need: [[Image from Gyazo]](https://gyazo.com/9c3d8a05cc689cd21f87fdf830c5f26f) The arrows are not aware they’re attached to a spline, they will not follow it. The Construction Scripts actually executes every frame and recreates everything from scr…

Image links are currently broken. We may need to wait until the migration is complete and wrinkles are ironed out. But YT if full of hot spline action.

There’s a working project link in the abovementioned thread that demonstrates it.

---

_[View the full topic](https://forums.unrealengine.com/t/attach-object-to-spline/493571)._
