文档

Unity Engine

Unity Engine

webSecurityEmulationHostUrl

The url the web security emulation feature will pretend your game is hosted at.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
警告
Deprecated. EditorSettings.webSecurityEmulationHostUrl is no longer supported, since the Unity Web Player is no longer supported by Unity.
public static string webSecurityEmulationHostUrl { get; set; }

Remarks

The web security emulation feature will pretend that your game is hosted somewhere. The location of the hosted file matters, because that indicates wether or not certain WWW requests need to be authorized trough a crossdomain.xml file or not.
Note that WebPlayer is not supported from 5.4 and onwards.