Version: 2023.1

Application.HasUserAuthorization

切换到手册
public static bool HasUserAuthorization (UserAuthorization mode);

描述

Check if the user has authorized use of the webcam or microphone on iOS and WebGL.

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.