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.