Version: 2022.1

Application.HasUserAuthorization

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

描述

检查用户是否已授权在 WebPlayer 中使用网络摄像头或麦克风。

This is used to check the result of a previous call to [[]]. Explicit user consent to use features is only needed in the Web Player. In other build targets, this function will always return true.

**注意:**5.4.0 及更高版本不支持 Web 播放器。