Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Application.webSecurityEnabled

static var webSecurityEnabled: bool;
static bool webSecurityEnabled;
static webSecurityEnabled as bool

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.