- UNITY WEB PLAYER ON CHROME INSTALL
- UNITY WEB PLAYER ON CHROME CODE
- UNITY WEB PLAYER ON CHROME WINDOWS
The Security Sandbox security policy can be configured for the server side.
UNITY WEB PLAYER ON CHROME WINDOWS
If your server is the Windows platform, directly copy a socpol.exe to the server side, execute in CMDĬd D:\softinstalled\unity5.3.8\Unity\Editor\Data\Tools\SocketPolicyServer \ Unity \ Editor \ Data \ Tools \ SocketPolicyserver" path.
UNITY WEB PLAYER ON CHROME CODE
Unity provides a "Sockpol.exe" such a tool, with Sockpol.exe and its source code under the ". If there is no treatment in this regard, Security Sandbox will prevent the program's Socket connection, causing unable to communicate. ONLY is in the Web Player's security mechanism, you need a server to configure a service security policy when using Socket. this is Unity WebPlayer Security SandBoxMechanism, Unit圓D has made a Security Sandbox mechanism for the Web Player platform. Call first.prefetchsocketpolicy (IP, 843, 3000) before calling Connect. Let's take the relevant content on the development and distribution of Web Player.ġ. Web Player does not have this limit, and socket is used normally. If you select WebGL, then Network Socket To select WebSocket, you can use System.Net related socket, you can only use WebSocket-related libraries (you need to download), and you need the corresponding parsing of WebSocket in the server, you can use Socket Communication. Unity Performance Base on WebGL Platform
Package slow: BUILD wait for a long time, use new technology IL2CPP.Document: Size of the package file is larger than the Web Player.Performance: Compared to local code, WebGL is lower in some aspects, such as supporting multi-threaded 3D physics.Unstable: There are current BUG and pit, because there are few new people in technology, this platform encountered BUG, the forum is more difficult to find a solution.AUDIO / browser: Audio is currently only supporting MP3, IE does not support.Beautiful future: in the mobile market, Google and Mozilla support WebGL.New things: technology is updated iteration, in the future, WebGL will replace Web Player.No plug-in: Firefox and Chrome do not need to plugin.
UNITY WEB PLAYER ON CHROME INSTALL
View Chrome version: chrome: // version / or click help -> About Google ChromeĬhrome44 version and the following version can run Web Player, setting: In the browser, enter chrome: // flags / # enable-nPapi, enable NPAPI, restart the browser, install the web player plugin, enable the web player plugin File Limit: For security reasons, no local Databases or other streaming assetsĬontinue to use Web Player in Chrome, reference:.Stop support: Chrome has stopped supporting NPAPI plugin from the 45 version of September 2015, including Web Player, and does not run Web Player.Plug-in support: Browser needs to install plugins to support Unit圓D games.Lightweight: Open the web page to play, do not need to install the client.Stability: BUG is less, after the unity version of iterative updates, Web Player technology is stable.Mature: I encountered problems during the development process, I can find the answer in the forum or elsewhere.The Unity 5.4 released will only select WebGL, the highest version of Web Player can use 5.3.8. Unity develops web games, you can choose Web Player with WebGL when publish.