Have a finished project that I loaded into 5.5 - it’s a home run derby game and the ball has a trail renderer. Works great in 5.4.3 but in 5.5 and 5.6 beta the trail renders but every few frames it draws from the current position back to the origin. So you get the arc but then straight lines back to the batter… Haven’t been able to capture a screen shot. I know trail renderer got upgraded with 5.5, so I’m hoping it’s just something I need to change.
In 5.5 and 5.6 I can create a default sphere. Assign a trail renderer to it. Change the material to Default-Particle. Then just dragging the sphere around in scene view, the trail will exhibit what I mean. It will draw behind the sphere, but it will also draw back to origin once in a while… ?
We are aware of an issue that sounds a lot like that in the 5.6 beta (fix on the way) but I’ve not heard of it affecting 5.5.
Probably best to log a bug so QA can check it out.
In 5.5 the simple example I posted actually doesn’t exhibit the issue. However, in my finished project it does, but I have some more info. I have several empty game objects as children of my baseball. Each has a trail renderer attached, with a different color, so I can change colors as the ball goes further. In 5.4 this works fine. In 5.5 as I switch one trail off, and the next on, a trail is drawn back to the origin and then it works… It’s as if the transform positions are not being updated until the trail is turned on, even though they are children of the ball. Hope I explained that well enough.
If you can submit a bug report with a minimal repro project, we can take a look.
Thanks,
I will try and put something together. But I noticed I am getting a series of errors when I get the incorrect draw.
Invalid AABB aabb
Invalid AABB *this
Converting invalid MinMaxAABB
Invalid AABB result
Assertion failed on expression ‘aabb.isFinite()’
and more…
Interesting… that’s probably related.
Are you using any RigidBody components? We have a known bug with those and particles that can produce that error - fix on the way.
The parent ball object has a rigidBody on it, yes.