DevelopmentOnly
Allow UnityWebRequest to use plain text HTTP connections in development builds only.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Field
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
DevelopmentOnly = 1
Remarks
In development builds, UnityWebRequest is allowed to use plain text HTTP connections. Otherwise, it is only allowed to use HTTPS connections.
Choose this option if you want to use insecure plain text HTTP connections with local servers while developing your application, and secure HTTPS connections in a release build.
In the Editor, UnityWebRequest is always allowed to use plain text HTTP connections when you choose this option. To create a development build, enable Development Build in the Build Profiles window, or include BuildOptions.Development when you call BuildPipeline.BuildPlayer.