Version: 2022.3
LanguageEnglish
  • C#
Removed

Application.webSecurityEnabled

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Obsolete Application.webSecurityEnabled is no longer supported, since the Unity Web Player is no longer supported by Unity. public static bool webSecurityEnabled;

Description

Indicates whether Unity's webplayer security model is enabled.

In the web player, this will always return true. In the Unity editor, it will return true if web security emulation is enabled (Menu->Edit->Project Settings->Editor) and false if the emulation is disabled. On all other platforms, this will return false;

This property can only be read. You can use EditorSettings.webSecurityEmulationEnabled to set this setting in the editor environment.

Note: The web player is not supported from 5.4.0 onwards.