# How to read Niagara user parameters from Blueprint?

**URL:** <https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882>\
**Category:** FX\
**Tags:** unreal-engine, UE5-0, question\
**Created:** [November 1, 2022, 7:15pm UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882 "2022-11-01T19:15:13Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [November 1, 2022, 7:15pm UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/1 "2022-11-01T19:15:13Z")

</div>

I want to read the value of the variable “SpriteSize” but I don’t know how to do it.

 ![niagara user params](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/9/689ed1c58db904e69fbabb13a5d343a0cdae239b.png)

I tried to read it as an array but the editor crashed

Any way to get that value?

Thank you very much!!

---

<div class="post-metadata">

**Author:** ![LeleShark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeleShark](https://forums.unrealengine.com/u/LeleShark)\
**Post date:** [August 29, 2023, 9:36pm UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/2 "2023-08-29T21:36:16Z")

</div>

I wish somebody will reply. I don’t know why there cant be a simple Get method

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [August 29, 2023, 10:19pm UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/3 "2023-08-29T22:19:22Z")

</div>

It is because C++ is a language strongly typed (BluePrints is based in C++)

---

<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:** [September 1, 2023, 3:15pm UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/4 "2023-09-01T15:15:46Z")

</div>

User parameters are not designed to be read from the component, they are write-only. Niagara components should be used for cosmetic purposes only, so if you rely on them to drive other logic in your game then that’s a good hint that your code architecture is wrong.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [September 1, 2023, 7:35pm UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/5 "2023-09-01T19:35:37Z")

</div>

If I remember correctly, I wanted to change the size of the Sprite… So yes, I think that’s write-only. With C++ I don’t have any problems. I set the size in the constructor of the object class and it works. I don’t know from Bluprint… but I’m no longer interested in it. Now I only use C++ because it is less problematic than bluprints. Blueprints are a pain in the head.

Thank you very much for your comment!!

---

<div class="post-metadata">

**Author:** ![HashemShepard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hashemshepard/32/1201564_2.png) [@HashemShepard](https://forums.unrealengine.com/u/HashemShepard)\
**Post date:** [August 25, 2024, 3:17pm UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/6 "2024-08-25T15:17:34Z")

</div>

i think this is what you need  
[https://www.unrealengine.com/marketplace/en-US/product/expose-niagara-variables-c-blueprints](https://www.unrealengine.com/marketplace/en-US/product/expose-niagara-variables-c-blueprints)

---

<div class="post-metadata">

**Author:** ![imtrobin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imtrobin2](https://forums.unrealengine.com/u/imtrobin2)\
**Post date:** [January 9, 2025, 10:07am UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/7 "2025-01-09T10:07:09Z")

</div>

Anyone found a way without the plugin?

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [January 9, 2025, 11:20am UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/8 "2025-01-09T11:20:49Z")

</div>

No problem with C++

---

<div class="post-metadata">

**Author:** ![imtrobin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imtrobin2](https://forums.unrealengine.com/u/imtrobin2)\
**Post date:** [January 9, 2025, 2:20pm UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/9 "2025-01-09T14:20:03Z")

</div>

Can you please share how? I’m tryiig to get a FVector, using FNiagaraVariant, can’t seem to cast it right.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [January 9, 2025, 7:16pm UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/10 "2025-01-09T19:16:14Z")

</div>

in your .H

```auto
	UPROPERTY(EditDefaultsOnly) 
	TObjectPtr<class UNiagaraComponent> Niagara = nullptr;

	float SpriteSize=200.0f;

```

In your .CPP

`Niagara->SetVariableFloat("SpriteSize", SpriteSize);`

* * *

if you want a vector, then do it like this:

`Niagara->SetVariableVec3("SphereOrigin", Location);`

* * *

---

<div class="post-metadata">

**Author:** ![imtrobin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imtrobin2](https://forums.unrealengine.com/u/imtrobin2)\
**Post date:** [January 10, 2025, 2:09am UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/11 "2025-01-10T02:09:31Z")

</div>

Thanks, but Set is easy. I want to read user parameter

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [January 10, 2025, 6:47am UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/12 "2025-01-10T06:47:38Z")

</div>

> [@Ivan3z](#):
>
> `float SpriteSize=200.0f;`

You do not need read it because you already have it in your C++ class

---

<div class="post-metadata">

**Author:** ![imtrobin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imtrobin2](https://forums.unrealengine.com/u/imtrobin2)\
**Post date:** [January 10, 2025, 8:04am UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/13 "2025-01-10T08:04:51Z")

</div>

Not in my situation. I’m not defining it like OP, I’m reading from a groom component.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [January 10, 2025, 8:43am UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/14 "2025-01-10T08:43:57Z")

</div>

I have never used it… but you can try it!!

 ![Captura de pantalla 2025-01-10 084229](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/5/095acc85b76adf49055fb62548c81d7f1e1bf0d6.png)

---

<div class="post-metadata">

**Author:** ![imtrobin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imtrobin2](https://forums.unrealengine.com/u/imtrobin2)\
**Post date:** [January 10, 2025, 10:08am UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/15 "2025-01-10T10:08:21Z")

</div>

It’s ok, I have figured it out, thanks.

---

<div class="post-metadata">

**Author:** ![imtrobin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imtrobin2](https://forums.unrealengine.com/u/imtrobin2)\
**Post date:** [January 11, 2025, 1:49am UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/16 "2025-01-11T01:49:19Z")

</div>

Actually, can’t use GetCurrentParameterValue, it’s an editor only

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [January 11, 2025, 2:47am UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/17 "2025-01-11T02:47:38Z")

</div>

Then I think there is not another available methods to read data from Niagrara. It’s like the materials. you can write but not read. (That explains why no one answered my question in two years).

* * *

> [@Michael.Galetzka](#):
>
> User parameters are not designed to be read from the component, they are write-only. Niagara components should be used for cosmetic purposes only, so if you rely on them to drive other logic in your game then that’s a good hint that your code architecture is wrong.

* * *

I have not used groom component too. But maybe you can try to get the data from it instead Niagara.

* * *

Or maybe you can see the plugin provided by this user… it is another option

> [@How to read Niagara user parameters from Blueprint?](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/6):
>
> i think this is what you need [https://www.unrealengine.com/marketplace/en-US/product/expose-niagara-variables-c-blueprints](https://www.unrealengine.com/marketplace/en-US/product/expose-niagara-variables-c-blueprints)

* * *

---

<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:** [February 10, 2025, 2:48am UTC](https://forums.unrealengine.com/t/how-to-read-niagara-user-parameters-from-blueprint/681882/18 "2025-02-10T02:48:30Z")

</div>

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