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"

Get Overlapping Actors dont return all actors

The Blueprint and Picture should speak for it self ... The OnPickedUp function just calls Destroy Actor ...

I Pickup this Items on spacebar press. The Pickup itself is working but I dont pick up all Items in range. The ingame Screenshot show a much too big Box Collision(its almost bigger than the level itself to ensure all items are in) ... all Items are within it! Now when i hit spacebar some items dissapear BUT NOT ALL they dissapear in a distinct order and i can make them all dissapear by just hitting space a few times and i dont even have to move so the Box isnt moving.

I dont get why they are not found all in the first spacebar press ... Am I missing something on this simple blueprint ?

https://answers.unrealengine.com/storage/temp/38275-blueprint.png https://answers.unrealengine.com/storage/temp/38276-game.png

Product Version: Not Selected
Tags:
blueprint.png (77.2 kB)
game.png (232.1 kB)
more ▼

asked Apr 10 '15 at 12:32 AM in Bug Reports

avatar image

L1ne
11 2 5 9

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

1 answer: sort voted first

Hi L1ne,

Thank you for the report. I was easily able to reproduce the issue so I have created JIRA report UE-13672. Our developers will be investigating it further and we will post back here with updates as we have them.

As a workaround, I noticed that if you add the overlapped actors to an Array then loop through that array, it will work correctly.

alt text

Let me know if that works for you.

Cheers,

TJ

getoverlap04.jpg (69.8 kB)
more ▼

answered Apr 10 '15 at 05:11 PM

avatar image

TJ V ♦♦ STAFF
41k 1009 183 494

avatar image L1ne Apr 10 '15 at 10:39 PM

Works now with the array.

THX

avatar image TJ V ♦♦ STAFF Apr 13 '15 at 01:50 PM

L1ne,

I've been working with one of our devs on this and he explained that this is a common misunderstanding and the expected behavior of the GetOverlappingActors array.

The array that's created by the GetOverlappingActors node isn't 'set' like a standard array. The size can be changed each time a ForEachLoop is iterated. Because of this, with each loop the array size changes leaving behind some of the overlapped objects. This is a little hard to explain in just text so if you would like me to go into further detail, just let me know.

Anyways, the workaround that I gave you isn't a workaround, it is actually the correct way to implement this.

Cheers,

TJ

avatar image cgrebeld Oct 09 '15 at 06:31 PM

I would very much like to hear more details about this! I assume it applies to all functions that have an output TArray parameter? In what case would this array be changed as you loop over it?

(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