Check if an object has a light shining on it

I’m developing AI for my game, and I want to test if the object my AI is attached to has a light being shined on it, and I’m not sure the easiest way to go about this. My ambient light is completely black, and I have a few lights throughout my game(Point lights and spotlights)

Is there a way to actually detect this without access to the render texture to sample pixels?

If you’re looking for a simple solution, you could just put a trigger on your light that has a large enough radius to encompass the amount of light that’s being output, and when the character enters the trigger just raycast to them and see if line-of-sight exists. If so, then boom- your character has light shining on it. It’s not a pixel-perfect solution, but it could do the job just fine, and it’d be extremely efficient.