Appearance
Hello World Sample
A minimal starter project that scaffolds a new Metaplay-powered game.
Appearance
A minimal starter project that scaffolds a new Metaplay-powered game.
Hello World is the minimal Metaplay SDK integration that sets up the fundamental patterns of client-server communication. It features a simple click counter game where pressing a button increments a server-validated counter, showing how actions flow from client to server and back.

The project is designed as a clean starting point for new projects. It contains only the essential code needed to establish a connection, handle basic game logic, and manage the application lifecycle without any distracting complexity. We use it to initialize new projects when running the metaplay init project command.
Have a look at the Integrate the Metaplay SDK guide to see how the Hello World sample is used to initialize a new project.
Assets/SharedCode/Player/PlayerModel.cs) - Core game state and logicAssets/SharedCode/Player/PlayerActions.cs) - Action definitions for client-server communicationAssets/Code/GameManager.cs) - Unity-side game logic and UI integrationAssets/Code/ApplicationStateManager.cs) - Connection and lifecycle managementBackend/Server/Player/PlayerActor.cs) - Server-side player entityThe project structure is intentionally minimal to make it easy to understand each component's role.
Start by running the Hello World sample in offline mode to see the immediate client-server interaction:
HelloWorldScene in UnityThat's it!


Hello World is designed to be the starting point for your own game. Start expanding the player model with your own game state and add actions to implement your game logic.
For a more complete walkthrough of how to implement a new game, see the Wordle Tutorial.
metaplay init project to add the SDK and the Hello World sample to your projector