Skip to main content

Session Start Marker (MarkSessionLoad) [Player Network SDK only]

[Player Network SDK only] Start a data collection session.

By default, Player Network SDK does not collect performance data; performance data collection only starts after the scene start marker and is then uploaded to the SDK server.

In Player Network SDK, a scene represents a logical concept and is not directly related to a physical scene. Therefore, the scene tagging API can be called anywhere, typically before the Application.LoadLevel function in Unity.

If the battle server ID to be tested is included in extra_json within the scene marker, network latency testing will automatically begin.

Supported Platforms

Supports Android, iOS, Windows platform.

Function Definition

void MarkSessionLoad(string sessionName,string extra_json)

Input Parameters

ParametersTypeDescription
sessionNamestringSession Name
extra_jsonstringGame-defined extra parameter JSON string

Extra Parameters JSON String

ParametersTypeDescription
GAME_BATTLE_SERVER_IDstringBattle Server ID to be tested

Code Example

string sessionName = "UnityScene";
string extra_json = "{\"GAME_BATTLE_SERVER_ID\":\"id\"}";
UnionAdapterAPI.GetReportService().MarkSessionLoad("UnityScene", extra_json); // Start network latency measurement