# How can I tell if an Actor is a Preview Actor?

**URL:** <https://forums.unrealengine.com/t/how-can-i-tell-if-an-actor-is-a-preview-actor/282653>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 6, 2014, 4:55pm UTC](https://forums.unrealengine.com/t/how-can-i-tell-if-an-actor-is-a-preview-actor/282653 "2014-05-06T16:55:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttvd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ttvd](https://forums.unrealengine.com/u/ttvd)\
**Post date:** [May 6, 2014, 4:55pm UTC](https://forums.unrealengine.com/t/how-can-i-tell-if-an-actor-is-a-preview-actor/282653/1 "2014-05-06T16:55:34Z")

</div>

Hello, I have an editor related question. I have my own asset type in content browser (UObject derived). I drag it from content browser into a viewport, this creates an actor (AActor derived) and corresponding component inside that actor.

The issue is the following: it creates in fact two actors. First actor, is the preview actor and exists (as far as I can tell) between the moments of when I pick the asset in content browser and drop it into the viewport. At that point, this preview actor is destroyed and a new proper actor is created and added into my scene.

My question is, is there a way to tell that an actor is a preview actor? My actors require some heavy loading/cooking done and I would rather not do it if instance is only temporary.

Thank you.

---

<div class="post-metadata">

**Author:** ![Matt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matt](https://forums.unrealengine.com/u/Matt)\
**Post date:** [May 6, 2014, 5:24pm UTC](https://forums.unrealengine.com/t/how-can-i-tell-if-an-actor-is-a-preview-actor/282653/2 "2014-05-06T17:24:33Z")

</div>

The preview actor will have the RF\_Transient object flag. You can check with Actor-\>HasAnyFlags(RF\_Transient). Transient means not saved.

---

<div class="post-metadata">

**Author:** ![ttvd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ttvd](https://forums.unrealengine.com/u/ttvd)\
**Post date:** [May 6, 2014, 5:55pm UTC](https://forums.unrealengine.com/t/how-can-i-tell-if-an-actor-is-a-preview-actor/282653/3 "2014-05-06T17:55:27Z")

</div>

Thank you, that seemed to have worked. Can I ask you, what is the purpose of preview actors?

---

<div class="post-metadata">

**Author:** ![Matt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matt](https://forums.unrealengine.com/u/Matt)\
**Post date:** [May 6, 2014, 5:56pm UTC](https://forums.unrealengine.com/t/how-can-i-tell-if-an-actor-is-a-preview-actor/282653/4 "2014-05-06T17:56:47Z")

</div>

So you can see the actor as you drag it out of the content browser and around in the level. It gives you an idea where it will be placed. Without an actor this would not render properly.
