Application.webSecurityEnabled 网页安全模式

static var webSecurityEnabled : bool


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.

在Web播放器,这将始终返回true。在UNITY编译器中,如果启用了WEB安全模式(Menu->Edit->Project Settings->Editor)则返回真,如果没有启用则返回假。在所有其他平台,这将返回false;此属性只能被读取。

Page last updated: 2010-12-15