Hey unity Scripters! I was wondering if anyone knew how to make a flashlight in unity but make it so if you right click it goes small and if you right click it again it goes back to being big.
If anyone could make a script to do this that would be Awesome.
I think you’re referring to the volumetric light look. You can achieve this by using a cone mesh with an animated texture or your own shader based on the lights position aswell as various dust particle effects. I believe there’re a few packages on the asset store that have looked into this for good reference.