Skip to main content
Version: 14 Oct 2024

WiFi Direct Multi-User Sample

Projects
Sample Android Plug-in for Unity to use WiFi Direct Service Discovery.

This Unity C# project leverages the sample Android-Unity WiFi Direct Service Discovery Plug-in to demonstrate a basic low-friction peer-to-peer multi-device shared experience between Magic Leap 2 devices without the need for external network infrastructure.

The sample allows anywhere from 2 to 11 users, each wearing a Magic Leap 2 headset, to quickly join and share in a common AR experience where they all see and manipulate a virtual 3D model of a concept car that appears to be in the same physical location as users collaborate in their local shared space.

Github Project
Sample Android Plug-in for Unity to use WiFi Direct Service Discovery.

This project is an Android app harness and the plug-in code written in Java is an Android Activity contained in a Java Module.

Plug-in provides functionality to:

  • Connect Android devices using WiFi Direct P2P services
  • Communicate between connected devices over sockets with string-based messaging

Github Project