# Niagara temporary variables and setting variables

**URL:** <https://forums.unrealengine.com/t/niagara-temporary-variables-and-setting-variables/142401>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [April 28, 2020, 2:24pm UTC](https://forums.unrealengine.com/t/niagara-temporary-variables-and-setting-variables/142401 "2020-04-28T14:24:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PieBaron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PieBaron](https://forums.unrealengine.com/u/PieBaron)\
**Post date:** [April 28, 2020, 2:24pm UTC](https://forums.unrealengine.com/t/niagara-temporary-variables-and-setting-variables/142401/1 "2020-04-28T14:24:02Z")

</div>

Hello, I’m trying to make a temp variable and set it like in this old video [59:46](https://www.youtube.com/watch?v=s7QpAkzx5eM&t=3586s) but I’m unable to recreate this with a “Temp” parameter. Only if I use “Particle.” instead of “Temp.” I’m not sure why this is.

[![](https://cdn.discordapp.com/attachments/502768251093123073/704691634557812743/unknown.png) ](https://cdn.discordapp.com/attachments/502768251093123073/704691634557812743/unknown.png)

To break down my question further:  
First of, if I write "set variable " after clicking the plus button next to Particle Update, I get no results, so what should I be writing if not the name of the module? If for example I make a Particles.foo variable, I am able to set the variable by using my mouse to drag it under Particle Update, then it will make a Set Variables module. However, if I click that plus button and I write “set paricles.foo” my variable doesn’t show up, I unticked “library only” and still nothing, so what should I be writing?  
Why is this? Am I doing something wrong or has Niagara changed since then and theres a new way (or no way?) to do it?  
Is there a video or training I can watch which covers this? I get how I can plug variables into existing stuff, but I don’t understand how to set them and what / how temp variables work.

---

<div class="post-metadata">

**Author:** ![PieBaron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PieBaron](https://forums.unrealengine.com/u/PieBaron)\
**Post date:** [April 28, 2020, 3:15pm UTC](https://forums.unrealengine.com/t/niagara-temporary-variables-and-setting-variables/142401/2 "2020-04-28T15:15:29Z")

</div>

followup:  
It seems to be because I wasn’t doing it the right way. the solution seems to be to click the plus button next to Particle Update or w/e in the selection window, then write the variable data type, e.g. vector2D, this lets me create a variable and put “temp.” as prefix

Originally I was trying to do it by creating the variable in the parameters window, doing it that way I have no idea how to then set it with a set variables module
