# Check if actor placed from the editor

**URL:** <https://forums.unrealengine.com/t/check-if-actor-placed-from-the-editor/301700>\
**Category:** C++\
**Tags:** spawn, actor, unreal-engine, editor, question, CPP\
**Created:** [December 15, 2014, 10:00pm UTC](https://forums.unrealengine.com/t/check-if-actor-placed-from-the-editor/301700 "2014-12-15T22:00:03Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![spacebares](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spacebares](https://forums.unrealengine.com/u/spacebares)\
**Post date:** [August 17, 2017, 5:51am UTC](https://forums.unrealengine.com/t/check-if-actor-placed-from-the-editor/301700/5 "2017-08-17T05:51:37Z")

</div>

I know this is old question but its top search on google. So to answer the question directly, a `GetFlags();` on the actor will reveal the most reliable flag being **RF\_WasLoaded** for editor spawned actor. But only **IF** the actor was spawned in from a **saved** map. It is possible to have **NO** RF\_WasLoaded flag if; you drag actor into level, and hit play.

However if you drag the actor into level, **SAVE** , then hit play, the actor will receive **RF\_WasLoaded** flag everytime!  
You can then do a simple `if(HasAnyFlags(RF_WasLoaded)){ //im an editor actor! }` like so.

---

_[View the full topic](https://forums.unrealengine.com/t/check-if-actor-placed-from-the-editor/301700)._
