How to do it...

To create a laser dot aim with a Projector, follow these steps:

  1. Start a new 3D project.
  2. We'll be importing the Projectors components from the Unity Standard Assets. If you didn't install the Standard Assets when you installed Unity, go the the Asset Store and install the free Standard Assets now.
  3. Import laserAssets.unitypackage into a new project. Then, open the scene named basic_scene_MsLaser. This is a basic scene, featuring a player character in a maze, with standard arrow keys or WASD movement.
  4. Import the Projectors contents from the Effects Unity Standard Assets package folder:
  1. From the Inspector, locate the ProjectorLight ...

Get Unity 2018 Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.