# Is it possible in Niagara to get a bool for whether we're in the editor preview?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-in-niagara-to-get-a-bool-for-whether-were-in-the-editor-preview/663362>\
**Category:** FX\
**Tags:** unreal-engine, question, UE4-27\
**Created:** [October 6, 2022, 5:04am UTC](https://forums.unrealengine.com/t/is-it-possible-in-niagara-to-get-a-bool-for-whether-were-in-the-editor-preview/663362 "2022-10-06T05:04:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![heyx3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@heyx3](https://forums.unrealengine.com/u/heyx3)\
**Post date:** [October 6, 2022, 5:04am UTC](https://forums.unrealengine.com/t/is-it-possible-in-niagara-to-get-a-bool-for-whether-were-in-the-editor-preview/663362/1 "2022-10-06T05:04:39Z")

</div>

Sometimes it would be nice to have slightly different behavior in the Niagara preview vs in-game. For example, I have an emitter which only emits particles as the emitter moves through space, so it’s not emitting anything in the preview. I could fix this by adding a “Spawn Rate” component which has a positive rate in the preview, and 0 otherwise.
