# StateTree requires compile in order to run on editor start

**URL:** <https://forums.unrealengine.com/t/statetree-requires-compile-in-order-to-run-on-editor-start/541243>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [April 27, 2022, 4:49pm UTC](https://forums.unrealengine.com/t/statetree-requires-compile-in-order-to-run-on-editor-start/541243 "2022-04-27T16:49:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5d62296c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5d62296c](https://forums.unrealengine.com/u/anonymous_user_5d62296c)\
**Post date:** [April 27, 2022, 4:49pm UTC](https://forums.unrealengine.com/t/statetree-requires-compile-in-order-to-run-on-editor-start/541243/1 "2022-04-27T16:49:44Z")

</div>

In UE5, I am using a StateTree component on my NPC to have them move around. Everything works well and the NPC moves fine. However, if I restart my editor and play, the StateTree no longer works. If I open the StateTree blueprint and Compile, it begins to work again. This happens every time I close and reopen the editor even though I make no changes to the StateTree. Is there some circular dependency? Am I missing something?
