Unity WebRTC Control (UWC) is a plugin for Unity3D which enables low-latency data streaming between a modern web browser and a Unity application using the WebRTC protocol.
The plugin was created to improve accesibility for games by offering an opportunity to use web interfaces as game controllers.
Webrtc Block Firefox
Unity WebRTC Control. Unity WebRTC Control (UWC) is a plugin for Unity3D which enables low-latency data streaming between a modern web browser and a Unity application using the WebRTC protocol. The plugin was created to improve accesibility for games by offering an opportunity to use web interfaces as game controllers. To enable WebRTC in the web browser settings, hover over the name Opera in the top left corner and open Preferences. Now, type “WebRTC” in the search field and enable the first option in the resulting list. Open the list of your extensions. Among those, find WebRTC Control or any other extension containing WebRTC in its name.
Via WebRTC sensor data from the HTML5 API and any other custom data can be sent from the web client to Unity and vice versa in virtually no time.
Clone this repository to your Assets folder or download the unitypackage version from Unity Asset Store.
For the frontend you will have to define a index.html
as web interface, initialize the necessary modules (handled inside uwc-initialized.js
) and use the integrated StaticEventDispatcher
to interact with the uwc
module.
Firefox Webrtc Internals
On server side you need to implement the INetworkDataInterpreter
interface and pass an instance to UWCController.(You can extend the AbstractUWCInitializer
, though this is not a must.)
You can find more detailed information on how to use the library in the documentation or have a look at the demo application and see the plugin being used in an actual game project.
Webrtc Control Firefox Download
Supported Platforms
Due to the currently used WebRTC implementation, Unity builds are only working with Windows build target. (This will change soon!)
ES6 frontend functionality is limited to Chrome and Opera browser currently.(Extended cross-browser support in the works!)
Documentation
Have a look at the documentation for indepth implementation details, debugging tips and information on how to handle common issues.
You can always open an issue including a detailed description and steps to reproduce.
GPL 3.0
Free Software, Hell Yeah!