# Using material parameter collection with Niagara - how?

**URL:** <https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729>\
**Category:** FX\
**Tags:** unreal-engine, UE4, question, UE4-27\
**Created:** [April 27, 2022, 3:29am UTC](https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729 "2022-04-27T03:29:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [April 27, 2022, 3:29am UTC](https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729/1 "2022-04-27T03:29:22Z")

</div>

I have “global” wind material with parameter collection that sets direction vector for the wind. I also have falling leaves made with Niagara.

How can I connect direction vector from parameter collection to particles’ velocity, so that when I change wind’s direction, leaves fall following the wind.

Thanks

---

<div class="post-metadata">

**Author:** ![Michael.Galetzka](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michael.galetzka/32/924122_2.png) [@Michael.Galetzka](https://forums.unrealengine.com/u/Michael.Galetzka)\
**Post date:** [April 27, 2022, 9:06am UTC](https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729/2 "2022-04-27T09:06:19Z")

</div>

Create a Niagara Parameter Collection, then add your material parameter collection as source:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/2/312daa4cdb866a84e17faa82186d15ba75b7fe90.png)

Then in your Niagara system, add the parameter collection value via the parameter panel:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/a/92a2f1bff9c567111ee2f3098158d0b41644eb36.png)

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [April 27, 2022, 3:18pm UTC](https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729/3 "2022-04-27T15:18:36Z")

</div>

Thanks a bunch! Material parameter collection contains normalized vector though. How do I turn it into actual velocity in Niagara ?

---

<div class="post-metadata">

**Author:** ![Michael.Galetzka](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michael.galetzka/32/924122_2.png) [@Michael.Galetzka](https://forums.unrealengine.com/u/Michael.Galetzka)\
**Post date:** [April 27, 2022, 3:58pm UTC](https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729/4 "2022-04-27T15:58:02Z")

</div>

Add for example a wind force module, link your parameter collection vector into wind speed, then use the “wind speed scale” parameter to scale the force (e.g. set it to a random range between 500 and 1000).

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [April 28, 2022, 2:40am UTC](https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729/5 "2022-04-28T02:40:00Z")

</div>

I am doing something wrong 😅

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/3/4e37196824e5a0f7d0b190a0960e5e85f7e50784.jpeg "2022 04 27 21 05 35") ](https://www.youtube.com/watch?v=Xyeei5iVHkM)

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [April 28, 2022, 3:35am UTC](https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729/6 "2022-04-28T03:35:16Z")

</div>

@Michael.Galetzka alright, I think I got it set up, but when I change values in the material parameter collection, it doesn’t get synced with Niagara’s parameters:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/b/20bbd82334b2cb39263132578be7440e1a56094a.jpeg "2022 04 27 22 29 02") ](https://www.youtube.com/watch?v=x3OmtM3UYo8)

How can I make parameters update as I update material parameters ?

---

<div class="post-metadata">

**Author:** ![Michael.Galetzka](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michael.galetzka/32/924122_2.png) [@Michael.Galetzka](https://forums.unrealengine.com/u/Michael.Galetzka)\
**Post date:** [April 28, 2022, 1:42pm UTC](https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729/7 "2022-04-28T13:42:41Z")

</div>

I don’t think these values update in real-time as you edit the assets, but they get synced during play. So if you set the material parameter collection values with a blueprint and play in the editor, you should see the change. Place your Niagara system in the level instead of using the preview window.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [May 2, 2022, 3:08am UTC](https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729/8 "2022-05-02T03:08:49Z")

</div>

Alright, looks like I am missing something:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/6/1b6eebf3b711e4273d1724e1b4f6368dde3a2794.jpeg "UE4 Niagara particles issues") ](https://www.youtube.com/watch?v=pJHmK5tteq0)

Niagara Parameters Collection doesn’t update from Material Parameter Collection no matter what I do ☹ Also, when I set parameters in the Niagara Parameters Collection asset - they work as expected in the Editor, but when running PIE or on the device (Quest 2), particles don’t care for parameters from the Niagara Parameters Collection ☹

What am I missing ?

---

<div class="post-metadata">

**Author:** ![Michael.Galetzka](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michael.galetzka/32/924122_2.png) [@Michael.Galetzka](https://forums.unrealengine.com/u/Michael.Galetzka)\
**Post date:** [May 2, 2022, 2:21pm UTC](https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729/9 "2022-05-02T14:21:56Z")

</div>

I just did a quick test and the Niagara system only picks up changes from the material parameter collection when you PIE. Otherwise it uses the default value defined in the Niagara parameter collection.

If you update the material parameter collection in a tick function (e.g. from the level blueprint) if will update the niagara parameter as well.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/c/b3cfadfc3d493b5706471259fdf0214bb5cb5708.png)

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [May 3, 2022, 1:56pm UTC](https://forums.unrealengine.com/t/using-material-parameter-collection-with-niagara-how/540729/10 "2022-05-03T13:56:45Z")

</div>

> [@Michael.Galetzka](#):
>
> If you update the material parameter collection in a tick function (e.g. from the level blueprint) if will update the niagara parameter as well.

That doesn’t really make sense to me, because I need to be able either adjust direction/strength directly in the material parameter collection and see changes to the wind in the Editor or update those from BP.

What I did was I got a rid of Niagara Parameter Collection and instead used User Parameters, which I set from BP (on BeginPlay, but can be on any event, instead of Tick). That worked well for this case.

Thanks a bunch anyway!
