# Why is WITH\_EDITOR used in UEdGraphSchema?

**URL:** <https://forums.unrealengine.com/t/why-is-with-editor-used-in-uedgraphschema/485245>\
**Category:** Pipeline & Plugins\
**Tags:** macro, unreal-engine, editor, question\
**Created:** [June 23, 2021, 4:50am UTC](https://forums.unrealengine.com/t/why-is-with-editor-used-in-uedgraphschema/485245 "2021-06-23T04:50:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amoffat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@amoffat](https://forums.unrealengine.com/u/amoffat)\
**Post date:** [June 23, 2021, 4:50am UTC](https://forums.unrealengine.com/t/why-is-with-editor-used-in-uedgraphschema/485245/1 "2021-06-23T04:50:21Z")

</div>

Below is a screenshot from `UnrealEngine\Engine\Source\Runtime\Engine\Private\EdGraph\EdGraphSchema.cpp`

Why is `WITH_EDITOR` used at all in this file? My understanding of the code in `EdGraph` is that it is only relevant to editor builds that use graphs. I would assume that `WITH_EDITOR` should apply everywhere. But it is used selectively in this file, which makes me think that I don’t understand the macro very well. Can someone explain?

 ![342139-with-editor.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/e/e6e7ad194d87c7b0fdf9b5c90dfdce7338a99193.jpeg)
