OSC

OSC (Open Sound Control) is a protocol used for communicating between applications. XSOverlay, by default, is configured to send OSC messages on port 9000. XSOverlay does not listen for OSC messages. This can be changed by editing the ExternalMessageAPIConfig.json file located in the [XSOverlayInstallDirectory]/XSOverlay_Data/StreamingAssets/Plugins/Config/ directory.

OSC Configuration

OptionDescriptionDefault Value
OscSendPortThe port XSOverlay sends to OSC messages on.9000
OscListenPortThe port XSOverlay listens to OSC messages on (UNUSED).9001
OscOutputPathThe base OSC address that is appended on each parameter./avatar/parameters/

Changes to this file will require a restart of XSOverlay to take effect.

💡

You will likely need to use a port number between 20000 and 49150. It is not advised to configure XSOverlay to use ports outside of this range as it conflict with ports allocated to your operating system or subsystem services

OSC Parameters

The following OSC parameters are sent by XSOverlay:

ParameterDescriptionType
leftControllerBatteryLeft Controller Battery Percentage (Range: 0 - 1)Float
rightControllerBatteryRight Controller Battery Percentage (Range: 0 - 1)Float
averageControllerBatteryAverage Controller Battery Percentage (Range: 0 - 1)Float
averageTrackerBatteryAverage Tracker Battery Percentage (Range: 0 - 1)Float
isOverlayOpenIs true when the overlay is open. When closed this parameter is falseBoolean
isKeyboardOpenIs true when the keyboard is open. When closed this parameter is falseBoolean
isWristVisibleIs true when the wrist menu is visible. When the wrist menu is not visible this parameter is falseBoolean
openOverlayCountThe number over overlays open (Range: 0 - 255)Integer

For more information on the OSC protocol and how to integrate it to your application, please refer to the OSC Documentation (opens in a new tab).