ドキュメント

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

Use this method to check the result of a previous call to Application.RequestUserAuthorization. On WebGL, the system asks users for consent to use these features every time the app is reloaded. On iOS, the system asks for consent only once and remembers the user’s choice. For all other platforms, this function always returns true.