Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HasUserAuthorization(UserAuthorization)

Check if the user has authorized use of the webcam or microphone on iOS and WebGL.
Read time 1 minuteLast updated 6 days ago

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.