The PhysioLabXR Plugin provides seamless integration of LSL (Lab Streaming Layer), ZMQ (ZeroMQ), and gRPC communication protocols into Unity projects. This enables Unity developers to easily send and receive data, and call remote procedural calls (RPCs) between Unity and the PhysioLabXR environment, facilitating real-time, multi-modal, brain-computer interfaces, and extended reality experiments.
To add this plugin to your Unity project, go to Window->Package Manager and click the plus button at the top-left corner. Select 'Add package from git URL' from the dropdown. Add this link https://github.com/PhysioLabXR/Unity-PhysioLabXR-Package.git. For more details, refer to the docs.
LSL Support: Stream and receive real-time data with Lab Streaming Layer, perfect for neurofeedback and BCI applications. ZMQ Integration: Use ZeroMQ for high-performance asynchronous messaging in distributed or concurrent applications. gRPC Communication: Implement efficient, low-latency remote procedure calls (RPCs) with gRPC, ideal for scalable microservices and cloud-based apps.
- Clone the repo, and open it in Unity.
- To edit the sample scenes, rename 'sample'
Please find the complete docs on how to use this package here.