# In BP, How to set Spline Variable type in Niagara?

**URL:** <https://forums.unrealengine.com/t/in-bp-how-to-set-spline-variable-type-in-niagara/482963>\
**Category:** FX\
**Tags:** unreal-engine, Spline, question, Blueprint\
**Created:** [May 5, 2021, 11:39pm UTC](https://forums.unrealengine.com/t/in-bp-how-to-set-spline-variable-type-in-niagara/482963 "2021-05-05T23:39:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![simasystem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@simasystem](https://forums.unrealengine.com/u/simasystem)\
**Post date:** [May 5, 2021, 11:39pm UTC](https://forums.unrealengine.com/t/in-bp-how-to-set-spline-variable-type-in-niagara/482963/1 "2021-05-05T23:39:04Z")

</div>

In a Niagara system,  
I have a User Parameter of type spline.  
How can I set that spline in blueprint?

Thank you in advance

 ![338079-screenshot-440.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/9/659704e10e43acf9c7d8122b9373ab608aea6ddd.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_348f3650](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_348f3650](https://forums.unrealengine.com/u/anonymous_user_348f3650)\
**Post date:** [March 17, 2022, 11:40am UTC](https://forums.unrealengine.com/t/in-bp-how-to-set-spline-variable-type-in-niagara/482963/2 "2022-03-17T11:40:07Z")

</div>

Hey just had the same problem.  
The way i got it to work was to make a second user parameter which is an object (SplineObject in the picture).  
Then under the spline parameter, set the SplineUserParameter to the new SplineObject.

You can now use the SetNiagaraVariable (Object) to the Spline object and it will work.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/f/00f0edf965377d06c0185696c30791ac76ac59c0.png)

---

<div class="post-metadata">

**Author:** ![Pumblesnook](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pumblesnook](https://forums.unrealengine.com/u/Pumblesnook)\
**Post date:** [March 28, 2022, 4:44pm UTC](https://forums.unrealengine.com/t/in-bp-how-to-set-spline-variable-type-in-niagara/482963/3 "2022-03-28T16:44:12Z")

</div>

Dear Sir,  
I am glad, that I did not tackle this problem a fortnight earlier, as I would have despaired without Your solution!

---

<div class="post-metadata">

**Author:** ![stffffffff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stffffffff](https://forums.unrealengine.com/u/stffffffff)\
**Post date:** [December 1, 2022, 9:55am UTC](https://forums.unrealengine.com/t/in-bp-how-to-set-spline-variable-type-in-niagara/482963/4 "2022-12-01T09:55:22Z")

</div>

Thanks Man !

---

<div class="post-metadata">

**Author:** ![woniuYZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@woniuYZ](https://forums.unrealengine.com/u/woniuYZ)\
**Post date:** [December 13, 2022, 9:50am UTC](https://forums.unrealengine.com/t/in-bp-how-to-set-spline-variable-type-in-niagara/482963/5 "2022-12-13T09:50:42Z")

</div>

Hello, I also encountered the same problem.

how set the SplineUserParameter to the new SplineObject ？

I can’t find the entry for setting 🙃

---

<div class="post-metadata">

**Author:** ![Creaprisme](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Creaprisme](https://forums.unrealengine.com/u/Creaprisme)\
**Post date:** [January 31, 2024, 6:24pm UTC](https://forums.unrealengine.com/t/in-bp-how-to-set-spline-variable-type-in-niagara/482963/6 "2024-01-31T18:24:35Z")

</div>

Thanks man, that’s do the trick!

---

<div class="post-metadata">

**Author:** ![pawciut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pawciut/32/476660_2.png) [@pawciut](https://forums.unrealengine.com/u/pawciut)\
**Post date:** [September 20, 2024, 9:02am UTC](https://forums.unrealengine.com/t/in-bp-how-to-set-spline-variable-type-in-niagara/482963/7 "2024-09-20T09:02:36Z")

</div>

Thanks, now it can be properly set in c++ with  
`NiagaraComponent->SetNiagaraVariableObject(SplineParticleParamName, SplineComponent)`
