Hi, I'm doing an AR app for iOS with ARKit and need to be able to turn on the torch for low-light conditions. I can turn on the torch via vuforia using [this method](https://answers.unity.com/questions/270832/how-to-turn-on-camera-light-make-a-flashlight-on-i.html) but enabling Vuforia overrides the ARKit camera-feed so the screen is all black.
I have found [this](https://stackoverflow.com/questions/47008256/how-to-turn-on-offf-camera-flash-light-with-arkit) answer on how to do it in swift but I have no idea where to put that script and how to access it from a unity UI button. Any ideas or suggestions of where to look?
↧