Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

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.

Product Version: Not Selected
more ▼

asked May 06 '14 at 04:55 PM in C++ Programming

avatar image

333 20 25 35

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered May 06 '14 at 05:24 PM

avatar image

451 11 4 8

avatar image ttvd May 06 '14 at 05:55 PM

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

avatar image Matt STAFF May 06 '14 at 05:56 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question