Skip to main content

Initialization (Init)

AndroidiOSWindows
Deprecated for: LI PASS V1.06.00
If you are using Unreal Engine, see Init for Unreal Engine SDK.

It is recommended to initialize LI PASS at game launch.

  • LI PASS V1.06 to LI PASS V1.15, you can call InitLI
  • LI PASS 1.16 and later versions, you can call InitLIP

Function Definition

public static void Init(string host, INTLUserData userData, List<Font> fonts, bool isTest);

Input Parameters

ParametersTypeExplanation
hoststringProduction Environment URL: https://sg-vas.intlgame.com
Test Environment URL: https://test-vas.intlgame.com
userDataINTLUserDataThis rule must be consistent with the rule configured by the Player Network console to obtain the correct resources
For more information, see UserData.
fontsList<Font>Font set used by LI PASS UI
isTestboolDoes not affect the LI PASS environment; the game doesn't need to worry, just pass false
note

If you are using a font not provided by LI PASS, please send the font to the Player Network assistant.

User Data Structure

ParametersTypeExplanation
gameIdintActual Game ID
channelIdstringLI PASS Channel ID 131
openIdstringOpenID, hardcoded as FFFFFFFFFFFFFF
langTypestringLanguage type affecting multilingual user interface display, pass as needed.
regionstringISO 3166-1 numeric code for country or region
For example, 156 represents China, and 040 represents Austria
appVersionstringGame version number

There are no special requirements for other parameters; pass values when available.

Code sample

List<Font> fonts = GetFont();
INTLUserData userData = GetUserData();
string host="https://test-vas.intlgame.com";
LevelInfinite.Init(host, userData, fonts, false);