Documentation

Support

Analytics

Analytics

Environment support

Learn how Analytics works with Unity Gaming Services environments, and how to initialize the SDK for different environments.
Read time 1 minuteLast updated 2 months ago

Analytics fully supports UGS environments. For more information about initializing UGS SDKs against a specific environment, see the environments page. Once the SDK has been initialized for an environment, all events uploaded during the session will be sent there.
Note
Events do not remember which environment they were recorded against, so a change in environment will see any events that were cached or buffered against a previous environment uploaded to the current one. For example, if you play offline against a
dev
environment and close the game to cache some events do disk, and then restart the game against the
production
environment instead, those cached events will be uploaded to
production
.