Skip to content

IntelSDM/GameBarUnityImplementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GameBarUnityImplementation

Sister Application to GameBarGUI.
Refer to documentation from GameBarGUI Instructions.

This is a unity implementation of GameBarGUI to allow you to draw real-time information to the Xbox GameBar. This works by taking our unity module and then creating a WebSocket server, waiting for the connection to the GameBar to be established. Once the connection is established the gamebar instance will run a thread receiving information, and mutex lock it. Then we can process it in the drawing thread(for thread-safe data communication).
We use JSON.hpp in the overlay and Newtonsoft.JSON in the client. This allows us to read the information in a formatted way that we can understand on both client and server. We also use this to separate the data through a "type" name to be able to identify data to process different data all at once.
This system can easily be modified to work with pipes but currently, it uses WebSockets for the ability to send an unlimited size of data quickly without predetermined data size requirements over a localhost network.

Images