文档

Unity Engine

Unity Engine

HasUserAuthorization(UserAuthorization)

Check if the user has authorized use of the webcam or microphone on iOS and WebGL.
阅读时间1 分钟最后更新于 1 天前

Definition

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.