Initialize the HyperX SDK once during startup. After initialization succeeds, user, data, LiveOps, and social APIs are ready to call.Documentation Index
Fetch the complete documentation index at: https://docs.hyperx.dev/llms.txt
Use this file to discover all available pages before exploring further.
Basic Initialization
PROJECT_CODE is the unique code for your Console project. Initialization fails if the code is missing, wrong, or unavailable.
Recommended Unity Bootstrap
HyperXEnvironment.Production only.
Initialization Errors
Initialization errors are thrown asHyperXInitializationException.
| ErrorCode | Meaning | Check |
|---|---|---|
PROJECT_CODE_REQUIRED | The project code is empty. | Build settings or constants. |
PROJECT_NOT_FOUND | HyperX could not find the project. | The project code copied from Console. |
INITIALIZATION_TIMEOUT | The project check timed out. | Network state and retry behavior. |
INITIALIZATION_REQUEST_FAILED | The network request failed. | Internet access, firewall, platform network permission. |
HyperXServerException. See Error Handling.
Create a Player Session After Init
For gameplay code that calls authenticated APIs often, prefer thePlayerSession flow.
Core.Users.StartGuest, Core.Users.LoginCustom, and Core.Users.LoginSocial APIs remain supported. PlayerSession removes repeated access-token plumbing and gives you one place to refresh tokens with RefreshIfNeeded.