◆ AsyncInitialize()
Initializes the Platform SDK asynchronously.
- Parameters
-
appId | The app ID for the Platform SDK. If not provided, Unity editor configuration will be applied. |
- Returns
- The initialization result.
- Exceptions
-
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. |
◆ GameInitialize()
Initializes game-related modules, such as room, matchmaking, and network.
- Parameters
-
◆ GameUninitialize()
static bool Pico.Platform.CoreService.GameUninitialize |
( |
| ) |
|
|
static |
Uninitializes game-related modules, such as room, matchmaking, and network.
- Returns
-
true
: success
-
false
: failure
◆ Initialize()
static void Pico.Platform.CoreService.Initialize |
( |
string |
appId = null | ) |
|
|
static |
Initializes the Platform SDK synchronously.
- Parameters
-
appId | The app ID for the Platform SDK. If not provided, Unity editor configuration will be applied. |
- Exceptions
-
NotImplementedException | If the current platform is not supported, this exception will be thrown. |
UnityException | If the initialization fails, this exception will be thrown. |
◆ IsInitialized()
static bool Pico.Platform.CoreService.IsInitialized |
( |
| ) |
|
|
static |
Gets whether the Platform SDK has been initialized.
- Returns
-
true
: initialized
-
false
: not initialized
◆ Initialized
bool Pico.Platform.CoreService.Initialized = false |
|
static |
◆ UninitializedError
string Pico.Platform.CoreService.UninitializedError = "Platform SDK has not been initialized!" |
|
static |
The documentation for this class was generated from the following file:
- /Users/bytedance/Desktop/pico/PlatformSdkUnity/Assets/Pico/Platform/Scripts/Service/Core.cs