Lightguns don't work on LCD screens, so they were not feasible on most consoles once folks started swapping out their CRTs.
Wii had a handful of light gun like games (that used the sensor bar of course) with the Wii Zapper, but other than that games of this type have needed more niche peripherals (Kinect, PS camera, now VR) that have made them more niche.
Right, but "just use cameras" is what I mean by "niche peripherals."
Other than the Wii, no modern consoles have had an installed user base for Move/Kinect/Camera type stuff to make it worth it for many developers to get involved. And even the Wii was just mostly shovelware waggle games, though as I mentioned there were some Wii Zapper games that approximated lightguns.
I think at this point we're past the sorts of external cameras and tracking necessary for lightgun things even more than we already were. This sort of stuff has already moved to VR and I don't know that we're gonna get them back in the physical realm any time soon.