x

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"

Iterators - Finding all "UDestructibleComponent" In Scene

Hey all,

I'm trying to iterate through my world and gather information on all the UDestructibleComponents I have so I can interact with them.

I can get the DestructibleActors and push them into an array using:

 TActorIterator<ADestructibleActor> Itr = TActorIterator<ADestructibleActor>(GetWorld());

Is there a specific type of Iterator, or a different way to gather an array of UDestructibleComponents from the World?

Thanks in advance.

Product Version: Not Selected
Tags:
more ▼

asked Jul 30 '14 at 03:10 AM in C++ Programming

avatar image

Stackray
31 9 7 10

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

1 answer: sort voted first

AFAIK no.

TActorIterator is already an improvement of TObjectIterator.

You can find an old discussions about iterators here started by Rama.

You might have already read Rama's wiki about iterators, if not take a look ;)

more ▼

answered Jul 30 '14 at 02:28 PM

avatar image

keru
68 4 9 12

avatar image Stackray Jul 31 '14 at 02:11 AM

Thanks for more information on Iterators.

I ended up finding a much less expensive way of doing what I need, so I don't need to cycle through all the destructible components in a scene.

(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