HasUserAuthorization(UserAuthorization)
Check if the user has authorized use of the webcam or microphone on iOS and WebGL.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static bool HasUserAuthorization(UserAuthorization mode)
Parameters
Returns
Type | Description |
|---|---|
| bool |
Remarks
This is used to check the result of a previous call to Application.RequestUserAuthorization. Explicit user consent to use features is only needed in WebGL. In other build targets, this function always returns true.