Light rays in the fog! But how?

Hello people on the internet!

I am making a game. In this game is Fog. In this game is A lot of light. Its an open world game. If there is fog in the real world. The littlewater particles will be lighted.
This will create A “light ray” This is a effect that i really like. 1 problem :frowning: I dont know how! This effect adds a lot of realism in my game. I want this as well on point as spotlights. (sorry for the bad English). I really like to have a realistic something, A script?

Tips tricks scripts links videos its all welcome!

I need this effect: http://mechanicaldummy.com/wp/wp-content/uploads/2013/12/lights-3.jpg

You can achieve the effect of volumetric light by adding a cookie in front of your spotlight.

EDIT:

Ok. You need to add a mesh in front of your spotlight that will cover the part of light to be hidden.

Watch the last part of this video for creating a professional logo . It is for blender but he has shown a method to do volumetric lighting which is what I’m talking about.