# How can I loop Spline Component?

**URL:** <https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126>\
**Category:** Audio\
**Tags:** unreal-engine, Spline, loop, Blueprint, question\
**Created:** [September 19, 2014, 9:54pm UTC](https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126 "2014-09-19T21:54:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zielak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zielak](https://forums.unrealengine.com/u/Zielak)\
**Post date:** [September 19, 2014, 9:54pm UTC](https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126/1 "2014-09-19T21:54:28Z")

</div>

I’m making a racing prototype, where vehicles follow the spline component like the train on rails.

By “looping” I mean seamlessly merge first and last points. I was hoping to see something like “Loop spline” checkbox in component settings, so the spline wouldn’t have any gap between first and last points.

The only solution I came up with should work in theory but fails. In Construction script, I’m using Set World Location at Spline Point to set the last point’s position to be the same as the first. In effect, the last point never snaps to the right location and moving it around feels like it isn’t under my control.

 ![15852-ue4splinecomponent.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/4/314bace5b9fb45a2bf23e3c91382a7480a74ddd1.png)

---

<div class="post-metadata">

**Author:** ![OhiraKyou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OhiraKyou](https://forums.unrealengine.com/u/OhiraKyou)\
**Post date:** [September 26, 2014, 6:35am UTC](https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126/2 "2014-09-26T06:35:43Z")

</div>

+1. Can’t believe there’s not a closed loop checkbox. If you find a solution, do post it here.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_642ca581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_642ca581](https://forums.unrealengine.com/u/anonymous_user_642ca581)\
**Post date:** [September 26, 2014, 10:58am UTC](https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126/3 "2014-09-26T10:58:09Z")

</div>

I’ve not tried this but, in the editor select the first point and then Ctrl + Click the end point.

---

<div class="post-metadata">

**Author:** ![Zielak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zielak](https://forums.unrealengine.com/u/Zielak)\
**Post date:** [September 26, 2014, 11:15am UTC](https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126/4 "2014-09-26T11:15:09Z")

</div>

CTRL + Clicking first an last does nothing. I tried CTRL+clicking any point of my spline with no effect.

---

<div class="post-metadata">

**Author:** ![kevin\_g](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kevin\_g](https://forums.unrealengine.com/u/kevin_g)\
**Post date:** [September 29, 2014, 1:53am UTC](https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126/5 "2014-09-29T01:53:10Z")

</div>

Running into the same issue here. Set World Location seems to be setting its local location instead.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a927dd6e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a927dd6e](https://forums.unrealengine.com/u/anonymous_user_a927dd6e)\
**Post date:** [October 1, 2014, 3:30pm UTC](https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126/6 "2014-10-01T15:30:54Z")

</div>

Hi, this is now implemented and will make it into 4.6. If you can’t wait that long, it’s also on Github [here](https://github.com/EpicGames/UnrealEngine/commit/4257b9ad67ba10cbed33a97fa50f469f6cf09cfb). The Set World Location bug has also recently been fixed 🙂

---

<div class="post-metadata">

**Author:** ![OhiraKyou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OhiraKyou](https://forums.unrealengine.com/u/OhiraKyou)\
**Post date:** [October 1, 2014, 3:59pm UTC](https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126/7 "2014-10-01T15:59:14Z")

</div>

Very cool. All of my thanks to you, good sir.

---

<div class="post-metadata">

**Author:** ![Zielak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zielak](https://forums.unrealengine.com/u/Zielak)\
**Post date:** [October 1, 2014, 5:03pm UTC](https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126/8 "2014-10-01T17:03:12Z")

</div>

I’m trying to build from your commit, but I get bunch of errors and “Failed to load OculusRift plugin because there’s not Oculus module” when I try to run U4Editor. I don’t have Oculus. Got any idea what I could be doing wrong?

Anyway, thanks for taking your time to add this feature. Hopefully we’ll be able to see it in official release 😃

---

<div class="post-metadata">

**Author:** ![deltamethrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deltamethrin](https://forums.unrealengine.com/u/deltamethrin)\
**Post date:** [September 11, 2022, 2:35am UTC](https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126/9 "2022-09-11T02:35:35Z")

</div>

Hello. Unfortunately, it looks like the github link is broken, any idea on how to find info on this? I’m trying to automatically connect spline points for streamed levels.

---

<div class="post-metadata">

**Author:** ![VostokSTZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VostokSTZ](https://forums.unrealengine.com/u/VostokSTZ)\
**Post date:** [January 17, 2024, 6:52am UTC](https://forums.unrealengine.com/t/how-can-i-loop-spline-component/294126/10 "2024-01-17T06:52:15Z")

</div>

Same here! I need to merge different spline components by tip distance
