@tig said:
Sadly your code example is poorly formatted, making it hard to read...
Sorry, first time testing out code posting on here. I tried to fix it a bit but it's formatting oddly. Basically, the first part is a ton of filters to select certain component instances, then there is a loop to just explode these.
@tig said:
However, here are a few observations that might be related.
With v2017, when you explode a container all of the references you might have had to entities within that container are lost - all IDs are refreshed.
Theents=container.explode
will return an array of exploded entities [and often more besides] - all with new references - so therefore you will need to re-search that array to get the needed references to any resultant 'containers' etc...
I'm not sure I follow you here. Are you saying that I will need to re-search the entities after exploding? I am having trouble with the speed of exploding/freezing during exploding, not finding the entities after. Am i stuck with a slow exploding process or are there some tricks to speed it up?
Thanks, for feedback and further clarification.