How to create bullet tracing effect with Raycast?

Hello everyone.

I am currently trying to figure out a way to show the path of my bullets in unity. I am using a “Raycast” approach to determine if I hit something. I have seen some tutorials of how one can go about doing this. One example is using the “Trail” component on an object and creating multiple objects that move forward. But the issue with this method is that I need to create objects. Additionally, I have to implement an “object pooling” pattern to make it performant. I just wanted to know if there is an easier method that does not involve having to deal with objects or pooling systems?

(PS: I have also tried using the “LineRenderer” component, but it is not really what I am looking for as it only creates a line between 2 points and that is not visually appealing.)

Thank you for taking the time to answer my question.:slight_smile:

The short answer, in response to the quoted, is no. Every ounce of development is spent managing ‘objects’ in one form or another.

You should definitely consider following the tutorials that have presented you with the means of acheiving what you desire.

1 Like

Okay. I am at least happy to know that there is no other way and that the tutorials that I am following are the best option. Thank you.