- Home /
Unity phone game: Would it be possible to access the camera/light sensor to get the amount of light?
I'm pretty new to Unity and I was wondering if it would be possible to access the light sensor/camera of the phone and get a measurement, so it can be a trigger for some cool game mechanics.
Really not sure about the answer. It's obviously possible, I just don't know if it can be done with unity. I looked at the systemInfo class which has a lot of (XXXSupported) options, however, not one of them was camera or light sensor. I think you may be out of luck, but hopfully a unity expert will prove me wrong. http://docs.unity3d.com/ScriptReference/SystemInfo.html
If it is, in fact, not possible to access such information right now it's a shame and I hope they add this feature in the upco$$anonymous$$g versions, because trying to experiment with breaking the barrier between the game and the player is a trending topic right now.