Raycasters

When we created the first Canvas for the scene, Unity also added an item called EventSystem. An EventSystem is used to detect where current input events need to be sent and Raycasters provide that information. Think of a Raycaster as a visible laser pointer. When evoked in your scene, the Raycaster sends out a ray which reports the object or objects it has collided with. For our project, we will be using a Graphic Raycaster, but there are also two other types of Raycasters to consider: