Let's improve the previous recipe by displaying a laser beam from the character's laser gun to the projected laser target. We'll implement the laser beam through scripting a Line Renderer, which is being redrawn each frame:

Let's improve the previous recipe by displaying a laser beam from the character's laser gun to the projected laser target. We'll implement the laser beam through scripting a Line Renderer, which is being redrawn each frame:
This recipe is based on the previous one, so make a copy of that project and work with its copy. You'll also need a Texture for the beam color; one is provided in the 07_05 folder called beam.psd.
To enhance the laser aim with a Line Renderer, follow...