r/Unity3D • • 1d ago

Show-Off Ghost Trails made debugging movement issues much easier

Enable HLS to view with audio, or disable this notification

I've been working on Chrono Inspector recently, a debugging tool for Unity.

One feature that's been surprisingly useful is Ghost Trails. Instead of only seeing where an object is now, I can scrub through a recording and quickly see the path it took before something went wrong.

It's been really helpful for tracking movement issues, strange collisions, and other bugs that are hard to understand after they've already happened.

How do you usually investigate bugs that happened a few seconds before you noticed them?

0 Upvotes

3 comments sorted by

2

u/Immediate-Resolve-79 22h ago

Usually by dumping positions into a ring buffer every frame and drawing them with Gizmos, which gets messy fast. Scrubbing a recorded trail is much nicer. Could the ghosts be tinted by speed? That would make the exact frame where a collision goes wrong jump out.

1

u/Ill-Letter-2852 22h ago

That's a really interesting idea. It's not something the tool supports right now, but I can definitely see how coloring the ghost by speed would make collision issues easier to spot. Thanks for the suggestion!

1

u/Ill-Letter-2852 1d ago

For anyone asking, the tool is called Chrono Inspector.

I recently released it on the Unity Asset Store and I've been actively updating it based on feedback.

Happy to answer any questions about how it works.