Although using UI elements, such as a cross-hair, is a valid way to allow players to aim, replacing (or combining) it with a projected laser dot might be a more interesting approach. In this recipe, we will use a light projector to implement this concept:
Creating a laser aim with a projector
Getting ready
To help us with this recipe, in the 07_04 folder, we've provided a Unity package (laserAssets.unitypackage) containing a sample scene featuring a character holding a laser pointer, and also a texture map named LineTexture.
How to do it...
To create a laser dot...