This Unity tutorial will teach you how to select objects using raycasts by walking you through a simple example.
Ray Casting (or raycasting) is the process of using an invisible ray in order to solve a variety of problems in game development, such as intersections and collisions. This tutorial covers the ScreenPointToRay method which is one of a few ways to cast rays in Unity.
This tutorial was created in part with Jason Storey (apieceoffruit). Learn more about Jason by visiting http://www.firepanda.co.uk
📦 Download the example project here