PICO Platform Unity SDK
|
Static Public Member Functions | |
static bool | IsInitialized () |
Gets whether the Platform SDK has been initialized. More... | |
static string | GetAppID (string appId=null) |
Gets the app ID for the current app. More... | |
static Task< PlatformInitializeResult > | AsyncInitialize (string appId=null) |
Initializes the Platform SDK asynchronously. More... | |
static void | Initialize (string appId=null) |
Initializes the Platform SDK synchronously. More... | |
static Task< GameInitializeResult > | GameInitialize (string accessToken) |
Initializes game-related modules, such as room, matchmaking, and network. More... | |
static Task< GameInitializeResult > | GameInitialize () |
Initializes modules without token related with game, such as room, matchmaking, and net. More... | |
static bool | GameUninitialize () |
Uninitializes game-related modules, such as room, matchmaking, and network. More... | |
Static Public Attributes | |
static bool | Initialized = false |
static string | NotInitializedError = "Platform SDK has not been initialized!" |
|
static |
Gets whether the Platform SDK has been initialized.
true
: initializedfalse
: not initialized
|
static |
Gets the app ID for the current app.
UnityException | If the app ID cannot be found, this exception will be thrown. |
|
static |
Initializes the Platform SDK asynchronously.
appId | The app ID for the Platform SDK. If not provided, Unity editor configuration will be applied. |
UnityException | If the input app ID is null or empty or if the initialization fails, this exception will be thrown. |
NotImplementedException | If the current platform is not supported, this exception will be thrown. |
|
static |
Initializes the Platform SDK synchronously.
appId | The app ID for the Platform SDK. If not provided, Unity editor configuration will be applied. |
NotImplementedException | If the current platform is not supported, this exception will be thrown. |
UnityException | If the initialization fails, this exception will be thrown. |
|
static |
Initializes game-related modules, such as room, matchmaking, and network.
accessToken | The access token of Platform SDK. You can get the access token by calling UserService.GetAccessToken() . |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
static |
Initializes modules without token related with game, such as room, matchmaking, and net.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
static |
Uninitializes game-related modules, such as room, matchmaking, and network.
true
: successfalse
: failure