Training
Module
Integrate Azure Cloud Services to your Unity project on HoloLens 2 - Training
Add Azure Cloud Services such as Azure Storage and Azure Custom Vision for your mixed reality application.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Use this topic to detect if your Cloud Aware title is capable of streaming so that you can optimize your game for Xbox Game Streaming.
During game initialization, ensure that you've set up the game streaming component by using XGameStreamingInitialize
as shown in the following code.
// Initialize the game streaming component
XGameStreamingInitialize();
To detect if there are any active streaming clients that are currently connected, use XGameStreamingIsStreaming
as shown in the following code.
if (XGameStreamingIsStreaming())
{
// The game is currently streaming to at least one device
// Enable any customizations that might be useful when running from the cloud
}
If there are any active streaming clients, your game has a point-in-time understanding of those clients when using XGameStreamingIsStreaming
. To receive notification when a streaming client connects or disconnects from your game, use XGameStreamingRegisterConnectionStateChanged.
Training
Module
Integrate Azure Cloud Services to your Unity project on HoloLens 2 - Training
Add Azure Cloud Services such as Azure Storage and Azure Custom Vision for your mixed reality application.
Documentation
XGameStreaming (API contents) - Microsoft Game Development Kit
Game streaming APIs.
Describes how to reference xCloud servers in XSTS claims.
XGameStreamingInitialize - Microsoft Game Development Kit
Initalizes the Game Streaming APIs.