Unity - Scripting API: Application.RequestUserAuthorization
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
Request authorization to use the webcam or microphone on iOS, and the webcam only on WebGL.
Application.RequestUserAuthorization is called to request permission for microphone and camera. The application shows a dialog box to the user and waits for the operation to complete before being able to use these features.
Note: Use Application.HasUserAuthorization to query the result of the operation.