文档

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

  • 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.