In this video, I will teach you how to make a laser that will detect instantly anything in front of it in the layers that you selected so you can make it ignore whatever you want and scale the size of the beam to the distance to the object hit. This gives a really cool effect.
0:00 Intro
0:15 Scale Of Laser
1:25 Pivot
1:50 Laser Script
4:55 Editor Setup
6:00 Result
---
Subscribe for game making tutorials with unity and to follow my projects with the dev logs !
Check out my website for my other socials and if you want to see and try the games I made: https://bit.ly/MaxMakesGames