Appearance
Trash Dash Sample Project
A complete sample of how to integrate Metaplay into an existing Unity game.
Appearance
A complete sample of how to integrate Metaplay into an existing Unity game.
Trash Dash is a sample project demonstrating how to integrate Metaplay into an existing Unity game. Based on Unity's Trash Dash endless runner sample, this project shows an incremental adoption approach that focuses on quick wins without extensive refactoring.

The complete integrated sample project is available at GitHub, with each integration step implemented as a separate pull request for easy reference.
The sample demonstrates the following Metaplay features:

The sample also includes:
There are three ways to explore this integration example:
Read the tutorial - Follow the step-by-step tutorial in Integrate Metaplay Into an Existing Game to understand how the sample was built.
Clone, run, and test - Clone the repository and run the sample locally. All steps can be done completely locally and offline, making it easy to interactively explore and experiment with the code.
Repeat/apply in your own project - Use this sample and the accompanying tutorial as a reference to adopt Metaplay SDK in your own game. Adapt the steps to fit your existing project structure.
To run the Trash Dash sample locally:
Dependencies:
To run the sample:
To run the server:
To run the custom LiveOps Dashboard:
npm install -g pnpmSteps:
git clone git@github.com:metaplay-shared/trashdash-sample.gitmetaplay init sdk --sdk-version=34.2metaplay dev serverThe code in the GitHub repository is provided as an educational example to help you understand how to integrate Metaplay into an existing project. Feel free to use our code as a reference or template for your own integration.
The Trash Dash project belongs to Unity and is not a part of the Metaplay SDK and is not governed by the Metaplay SDK license.