How to make a flashlight in unity like slender the arrival

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.

Thanks Again, Blue Moon Development Team! :slight_smile:

Don’t know what effect you are talking about, but I assume that if the radius narrows, the intensity and range increases?

You would use a spotlight for a torch, and to create that effect you would modify the spot angle, intensity and range properties.
http://docs.unity3d.com/Documentation/Components/class-Light.html

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.

I have looked around and havent found anything could you link me to something that might help me out ?