About Trail Renderer error

Hello, I made a bullet scene using Trail Renderer. However, when I move the point where the bullet exits to the right or left, something like a different ray appears in the Trail renderer.

Could you share the code you’re using to spawn the bullets?

Looks like you’re pooling bullets or otherwise instantiating them at the wrong position and then moving them, so the trail generates from the position they’re spawned at to the start of their trajectory.

@arkano22 Yes you are right. After giving the position, I wrote TrailRenderer.Clear. The problem was solved.