Skip to main content

Init

AndroidiOSWindows
Deprecated since: LI PASS V1.06.00
If you were looking for the method for use with Unreal Engine, see Init for Unreal Engine SDK.

It is recommended to initialize LI PASS when starting the game.

  • For LI PASS V1.06 to LI PASS V1.15, see InitLI.
  • For LI PASS V1.16 and above, see InitLIP.

Function definition

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

Input parameters

ParameterTypeDescription
hoststringProduction environment URL: https://sg-vas.intlgame.com
Test environment URL: https://test-vas.intlgame.com
userDataINTLUserDataThe rule must be consistent with the rule configured on Player Network Console to get the correct resources
For more information, see UserData.
fontsList<Font>The font set LI PASS UI will be using
isTestboolIt doesn't affect the LI PASS environment, and the game doesn't need to worry about it. Just pass false
note

To use font that is not provided with LI PASS, please send the font to the Player Network representative.

UserData structure

ption
gameIdintActual Game ID
channelIdstringLI PASS channel ID 131
openIdstringOpenID
Hardcode it to FFFFFFFFFFFFFF
langTypestringLanguage type which affects multi-language UI display, pass as required
regionstringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria
appVersionstringGame version

Other parameters do not have special requests, pass the value when available.

Code sample

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