Transistor turns on when mentioned base current is provided ,but the process behind it is to generate small amount of carriers in base region
We can do this by shining light (of suitable wavelength) on to the semiconductor of the transistor
So, I've opened 2n2222a transistor and spotted under the laser and here's the result, it worked!!!
Maybe this can be used as an optical isolator or optocoupler
See the video
https://youtu.be/hdIEQJqHyvI