Version: 2022.2

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. Some platforms like WebGL need explicit user consent to use features. In most build targets, this function always returns true.