Make object visible only if lighted

Hello guys, i have a problem, i can’t figured out how to make object appears only if there lighted.

I explain, i have a “flashlight” like a UV Light, for exemple i have a text in my scene, i want it to be invisible all the times, excepts if i pass my flashlight on it

maybe do a spherecast about the size of the flashlight.

Yes but that way will just alloy me to cast the object, for turn it off or on
What i want to do is a little more complicated of that, i want to be able to see only what the flashlight are enlightened

A good exemple in the real life are the invisible pen, you can only see what is enlightened

Nobody have an idea ? :confused:

there used to be some shader in the forums that does it…

not sure which thread was it,