This repository contains basic sample projects for using the Metaplay SDK.
For a full list of all Metaplay samples and their descriptions, see the Sample Projects page in the documentation.
To run the samples, you'll need to get the Metaplay SDK first:
-
Create an account in the Metaplay Developer Portal.
-
Install the Metaplay CLI.
-
Download the Metaplay SDK using the CLI:
samples$ metaplay init sdk --sdk-version=37
Follow these steps to run any of the samples in this repository.
-
Start the sample project server:
Samples/<Sample>$ metaplay dev server
-
Check out the the sample project's LiveOps Dashboard:
- The Dashboard is available at http://localhost:5550.
-
Run the project in Unity:
- Open the sample project (
Samples/<Sample>) in Unity. - Open Unity menu Metaplay → Environment Configs, and set Active Environment to Localhost to ensure the client connects to the locally running server.
- Press Play in Unity to run the client within the Unity Editor.
- Open the sample project (