Skip to main content
Billable Resource
An Instance is a unique identifier for your game, think of it as a save file. It allows you to have multiple instances for the same application, or multiple save files for the same game. Instances use a UUID to identify the instance with your game, you must generate a new UUID for each new instance and ensure that the UUID is saved in your game’s save file.
// Generate a new UUID
UUID uuid = UUID.randomUUID();

// Register the instance
Instance instance = PixocracySDK.InstanceManager().registerInstance(uuid);

// Store the UUID somewhere safe for future use