Particle positioning on animated object

Hi,

We have some particles attached to characters in game, and in a script we modify the bone positions of the character to account for changes in scale. Since we upgraded from 4.6 to 5.2 the particles attached to the character are using the position of the bones before we modify them in LateUpdate.

I guess the order that things happen has changed between 4.6 and 5.2 but I am not sure how to fix this problem. I tried setting the script execution order of our script to -1000 in case this helped but it doesn’t seem to make any difference so I dont know if the particle render positions are being set before LateUpdate?

Here is the result with no modifying the bones - the particles are positioned correctly:

2350374--159142--upload_2015-10-22_18-0-57.png

And here is is with the bones modified in late update - notice that the particles are positioned where the bat would be if the bones weren’t modified
2350374--159141--upload_2015-10-22_18-0-15.png

Cheers!

So tinkering around trying to get this to work and discovered something weird. If I detatch the particle effect form the skeleton and just set its position to the bone pos in late update. But if I reparent it to the bone (and still set its position each frame) then it doesnt work.

Very Odd…

Hey Neil, I believe this is something that I’ve broken (sorry!)
However, the good news is that a fix went into our 5.2 patch release yesterday, which I believe will fix your issue. It’s due out in 5.2.2p1

Hope it fixes the issue you are seeing!
Richard

1 Like

Ah great - cheers - definitely had me confused :slight_smile: