How can i make a spotlight with path light?

hi, i wanna make a light house, but there is a problem in light, or at least i have this problem. when i use spotlight , it just shows me the destination light, for a light house i need the path of light , there’s must be an option for this, but i can’t find it or is there any way to make it please tell me.

Spotlight object has no path of light. Directional light has this kind of vector.
Simply use SetWorldRotation function.

i know how to use setWorldRotation, but how can i use it like a light house, as i know, it works like a sun light, not a limited light with light path. is there any option for it?