# Writting expressions in the niagara stack editor

**URL:** <https://forums.unrealengine.com/t/writting-expressions-in-the-niagara-stack-editor/434336>\
**Category:** FX\
**Tags:** unreal-engine, question\
**Created:** [September 23, 2018, 3:06pm UTC](https://forums.unrealengine.com/t/writting-expressions-in-the-niagara-stack-editor/434336 "2018-09-23T15:06:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorniedarko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorniedarko](https://forums.unrealengine.com/u/dorniedarko)\
**Post date:** [September 23, 2018, 3:06pm UTC](https://forums.unrealengine.com/t/writting-expressions-in-the-niagara-stack-editor/434336/1 "2018-09-23T15:06:04Z")

</div>

As i don’t find a dynamic input that suits my need for creating a specific fx in the niagara stack, i’d like to write a custom expression. Problem is i’m pretty new to coding and i don’t know what language is used for those niagara expressions; is it C++? what rules should i follow? is there any resources that explained it in detail?  
thanks

---

<div class="post-metadata">

**Author:** ![Shaun\_Kime](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shaun_kime/32/735096_2.png) [@Shaun\_Kime](https://forums.unrealengine.com/u/Shaun_Kime)\
**Post date:** [September 24, 2018, 3:22pm UTC](https://forums.unrealengine.com/t/writting-expressions-in-the-niagara-stack-editor/434336/2 "2018-09-24T15:22:19Z")

</div>

We just use HLSL for the expressions. A good place to look is the custom expressions sample asset in the Content Examples Niagara map. For more information about HLSL, see [https://docs.microsoft.com/en-us/windows/desktop/direct3dhlsl/dx-graphics-hlsl-reference](https://docs.microsoft.com/en-us/windows/desktop/direct3dhlsl/dx-graphics-hlsl-reference)

---

<div class="post-metadata">

**Author:** ![dorniedarko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorniedarko](https://forums.unrealengine.com/u/dorniedarko)\
**Post date:** [September 25, 2018, 2:37pm UTC](https://forums.unrealengine.com/t/writting-expressions-in-the-niagara-stack-editor/434336/3 "2018-09-25T14:37:52Z")

</div>

ok thanks… where can i found the “Content Examples Niagara map”? didn’t find those in the epic launcher…

---

<div class="post-metadata">

**Author:** ![Shaun\_Kime](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shaun_kime/32/735096_2.png) [@Shaun\_Kime](https://forums.unrealengine.com/u/Shaun_Kime)\
**Post date:** [September 25, 2018, 2:44pm UTC](https://forums.unrealengine.com/t/writting-expressions-in-the-niagara-stack-editor/434336/4 "2018-09-25T14:44:03Z")

</div>

Download from the learn tab in the Unreal Engine section of the launcher. It’s around the middle of the list, called Content Examples. Download that project and open it. One of the included maps has Niagara assets within it.

Livestream describing first two rooms: [Twitch](https://www.twitch.tv/unrealengine/video/289514707)

---

<div class="post-metadata">

**Author:** ![dorniedarko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorniedarko](https://forums.unrealengine.com/u/dorniedarko)\
**Post date:** [September 25, 2018, 2:59pm UTC](https://forums.unrealengine.com/t/writting-expressions-in-the-niagara-stack-editor/434336/5 "2018-09-25T14:59:24Z")

</div>

not even here: [https://docs.unrealengine.com/en-us/Resources/ContentExamples](https://docs.unrealengine.com/en-us/Resources/ContentExamples)

---

<div class="post-metadata">

**Author:** ![Shaun\_Kime](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shaun_kime/32/735096_2.png) [@Shaun\_Kime](https://forums.unrealengine.com/u/Shaun_Kime)\
**Post date:** [September 25, 2018, 3:03pm UTC](https://forums.unrealengine.com/t/writting-expressions-in-the-niagara-stack-editor/434336/6 "2018-09-25T15:03:26Z")

</div>

Niagara is still in early access and documentation is one of the last things that we do. Future releases will start to fill in those gaps.

---

<div class="post-metadata">

**Author:** ![dorniedarko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorniedarko](https://forums.unrealengine.com/u/dorniedarko)\
**Post date:** [September 27, 2018, 2:58pm UTC](https://forums.unrealengine.com/t/writting-expressions-in-the-niagara-stack-editor/434336/7 "2018-09-27T14:58:03Z")

</div>

ok i figured it out; the content example project from the epic launcher is dated of 2015, so i ignored it since niagara was only implemented in 2018. But i decided to give it a shot anyway and turns out theres a niagara level inside; the date mentioned is the date from the first iteration of the project, not the updated one, so i’ve been a bit confused; sorry about that.  
thanks again for the info 😉

---

<div class="post-metadata">

**Author:** ![dorniedarko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorniedarko](https://forums.unrealengine.com/u/dorniedarko)\
**Post date:** [September 27, 2018, 3:02pm UTC](https://forums.unrealengine.com/t/writting-expressions-in-the-niagara-stack-editor/434336/8 "2018-09-27T15:02:18Z")

</div>

yeah i know but can’t wait to use it for these project, very useful in my case. Anyway i found this niagara exemple project, it was a bit hidden, i explain how i found it below if anyone interested

---

<div class="post-metadata">

**Author:** ![dorniedarko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorniedarko](https://forums.unrealengine.com/u/dorniedarko)\
**Post date:** [September 27, 2018, 3:04pm UTC](https://forums.unrealengine.com/t/writting-expressions-in-the-niagara-stack-editor/434336/9 "2018-09-27T15:04:56Z")

</div>

oups didn’t see you there… As i said the content example project from the epic launcher is dated of 2015, so i ignored it since niagara was only implemented in 2018. But i decided to give it a shot anyway and turns out theres a niagara level inside; the date mentioned is the date from the first iteration of the project, not the updated one, so i’ve been a bit confused; sorry about that. thanks again for the info 😉
