# Check if Blueprint is being run within the editor (i.e if WITH\_EDITOR in C++)

**URL:** <https://forums.unrealengine.com/t/check-if-blueprint-is-being-run-within-the-editor-i-e-if-with-editor-in-c/11952>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [September 24, 2014, 12:15pm UTC](https://forums.unrealengine.com/t/check-if-blueprint-is-being-run-within-the-editor-i-e-if-with-editor-in-c/11952 "2014-09-24T12:15:14Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![tuatec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tuatec](https://forums.unrealengine.com/u/tuatec)\
**Post date:** [February 25, 2022, 9:48pm UTC](https://forums.unrealengine.com/t/check-if-blueprint-is-being-run-within-the-editor-i-e-if-with-editor-in-c/11952/28 "2022-02-25T21:48:09Z")

</div>

I know this is a blueprint question but with a few C++ lines you can get very precise results, see here [How to check if game is running - #12 by tuatec](https://forums.unrealengine.com/t/how-to-check-if-game-is-running/441567/12). Maybe someone will find this useful as well, it took me quite some time to figure this out. 😉

---

_[View the full topic](https://forums.unrealengine.com/t/check-if-blueprint-is-being-run-within-the-editor-i-e-if-with-editor-in-c/11952)._
