Appearance
Integrate Metaplay Into an Existing Game
A tutorial on how to integrate Metaplay into an existing Unity Game.
Appearance
A tutorial on how to integrate Metaplay into an existing Unity Game.
When integrating Metaplay into an existing game, we recommend an incremental adoption of our features. This lets you focus on a few quick wins, for example our LiveOps features, without having to refactor existing game logic.
We'll explain how to implement Metaplay into an existing game with scene management and other pre-existing services. As every game is different, we'll discuss the steps in the context of an endless runner game, but the steps apply to any project.
We intentionally avoided any extensive refactoring or even cleanup of the sample project's structure, as you are unlikely to have the luxury of time for that when working on live games. Of course, the scope of this integration tutorial is just a starting point for adopting what we feel is the true value of Metaplay: a cheat-proof game economy that, from a game design point of view, enables our long-term progression, monetization, and social features.
TIP
The complete integrated sample project is available on GitHub, including setup instructions and ways to explore the code.
To get to value quickly, we decided to focus on the following goals for the initial integration:

While implementing the above, we also want to keep the following long-term goals in mind:
Now that we have goals in mind, we can map out the integration steps needed to get there.
The integration process goes through minimal setup of the core SDK, and implementing the specific LiveOps features we want to use.
After the initial integration is complete, we will add a bit of extra polish to make the resulting sample more interesting to look at and prepare it for next steps beyond this tutorial.
At the end of the tutorial, the endless runner will have been converted into a game that uses Metaplay for remote configuration, player segmentation, experiments, and scheduling LiveOps events.