# How to access Niagara data interface vector field from outside the particle system?

**URL:** <https://forums.unrealengine.com/t/how-to-access-niagara-data-interface-vector-field-from-outside-the-particle-system/1231395>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [July 17, 2023, 9:06am UTC](https://forums.unrealengine.com/t/how-to-access-niagara-data-interface-vector-field-from-outside-the-particle-system/1231395 "2023-07-17T09:06:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastianhannula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sebastianhannula](https://forums.unrealengine.com/u/sebastianhannula)\
**Post date:** [July 17, 2023, 9:06am UTC](https://forums.unrealengine.com/t/how-to-access-niagara-data-interface-vector-field-from-outside-the-particle-system/1231395/1 "2023-07-17T09:06:04Z")

</div>

Hi, I am trying to change the vector field that my Niagara particle system is sampling from a blueprint or c++.

Here are some pictures of what I am referring to:  
 ![Screenshot 2023-07-17 115845](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/9/3993b33e7ba3a777d8d710c96478b1b92a7896c5.png)  
 ![Screenshot 2023-07-17 115928](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/b/a2b2a849fdd6d2b627f26b67073ded80c8bfe33e.png)

I have defined a user-exposed vector field parameter under the data interface category and now I would like to find a way to change this programmatically. I am quite new to Unreal Engine and I don’t know how to achieve this. Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![Trastrastras](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Trastrastras](https://forums.unrealengine.com/u/Trastrastras)\
**Post date:** [July 17, 2023, 9:25am UTC](https://forums.unrealengine.com/t/how-to-access-niagara-data-interface-vector-field-from-outside-the-particle-system/1231395/2 "2023-07-17T09:25:32Z")

</div>

Can help this?  
[How can I change Niagara variables via blueprint?](https://forums.unrealengine.com/t/how-can-i-change-niagara-variables-via-blueprint/437640)

---

<div class="post-metadata">

**Author:** ![sebastianhannula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sebastianhannula](https://forums.unrealengine.com/u/sebastianhannula)\
**Post date:** [July 17, 2023, 10:23am UTC](https://forums.unrealengine.com/t/how-to-access-niagara-data-interface-vector-field-from-outside-the-particle-system/1231395/3 "2023-07-17T10:23:31Z")

</div>

Thank you for answering! The issue here is that the only parameter types supported here are (Actor, Bool, Float, Int32, Linear Color, Quaternion, Vector 2, Vector 3 and Vector 4) as pointed out in the solution to the post that you linked. The type of my parameter is Vector Field which is not supported by these built-in functions at least directly.

---

<div class="post-metadata">

**Author:** ![sebastianhannula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sebastianhannula](https://forums.unrealengine.com/u/sebastianhannula)\
**Post date:** [July 18, 2023, 8:54am UTC](https://forums.unrealengine.com/t/how-to-access-niagara-data-interface-vector-field-from-outside-the-particle-system/1231395/4 "2023-07-18T08:54:13Z")

</div>

Any ideas, anyone?

---

<div class="post-metadata">

**Author:** ![sebastianhannula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sebastianhannula](https://forums.unrealengine.com/u/sebastianhannula)\
**Post date:** [July 19, 2023, 6:44am UTC](https://forums.unrealengine.com/t/how-to-access-niagara-data-interface-vector-field-from-outside-the-particle-system/1231395/5 "2023-07-19T06:44:33Z")

</div>

Solved it. There is a node called Set Niagara System Asset which indeed is a built in function to acheive exactly this. However, I find the name a little misleading and didn’t think of looking in to it before 😃 Well if anyone has the same problem in the future, here is the solution!  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/3/03307c047aa1756c5bc55d24f6bd6016c42f503f.png)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 18, 2023, 6:45am UTC](https://forums.unrealengine.com/t/how-to-access-niagara-data-interface-vector-field-from-outside-the-particle-system/1231395/6 "2023-08-18T06:45:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
