Unity library that allow to synchronize devices information in real time using Unity Networking.
This project has been developed as part of the master thesis of Erwan Normand and was supported by the ÉTS - École de Technologie Supérieure.
- Devices synchronize their touches information.
- Devices synchronize their touch gestures and events with the input library LeanTouch.
- Devices synchronize their acceleration events information.
- Server keeps the latest information from all devices client and send them to every new connected device client.
- Open the TCP/UDP port you're going to use.
- Clone this repository directly on your Unity project.
- Try the test scene:
- Connect a mobile device on the same local network than your PC.
- Build and run the
Assets/DevicesSyncUnity/Scene/MobileSync.unity
scene on the mobile device and on the PC. - Use the HUD to host on the PC and to connect as client with the mobile device.
- Touch the mobile device and see the touches displayed on the PC screen.
- Set up the NetworkManager on your scene.
- Optionally use
Assets/DevicesSyncUnity/Prefabs/NetworkManagerHUD.prefab
as replacement of the default Unity's NetworkManagerHUD. - Drag and drop to scene the
Assets/DevicesSyncUnity/Prefabs/{DeviceInfoSync, AccelerationSync, TouchesSync}.prefab
prefabs and configure them. - Optionally use
Assets/DevicesSyncUnity/Prefabs/DevicesSyncDisplay.prefab
to debug the prefab.
The documentation of available online: https://enormand.github.io/DevicesSyncUnity/
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
See the LICENSE file for license rights and limitations (3-clause BSD license).