Installation

Installing and configuring the DynamicPixels Unity plugin

DynamicPixels Unity SDK

This page will guide you through installing, setting up, and connecting the DynamicPixels plugin within your Unity project.

Installation

1

Download

You can obtain the latest version of the DynamicPixels Unity plugin by:

2

Import into Unity

  1. Open your existing Unity project.

  2. Navigate to Window -> Package Manager -> + Drop Down -> Add Package From Git Url

  3. Enter the URL of the SDK git repository.

  4. You can also add the package with .zip .

  5. Confirm that all assets are selected, then click Import.

Upon successful import, the DynamicPixels folder will appear inside your Assets/ directory.

3

Configure DynamicPixels

After installing SDK a setup dialog will be shown, enter the Client ID and Secret that is provided in the project settings. After the submit dialog, An Empty Object will be created in the hierarchy that contains DynamicPixels Initializer. You can always change the SDK configuration in this component:

  • Game ID: This value is a constant ID when you create your project in the dashboard.

  • Game Secret: The project's secret is an important value that should be kept very private but you can change it later.

  • Debug Mode: During game development, you need to see the errors and warnings and use this message to debug your game. This toggle enables showing these messages. Make sure to disable it whenever you want to publish your game.

  • Verbose Mode: If you need to see more and deeper log messages enable this toggle.

This component works as the Singleton pattern and keeps plugin data between scenes.

4

Verify Connection

After configuration:

  • Add ServiceHub.Authentication.RegisterWithEmail(RegisterWithEmailParams input); with fulfilled parameters to check your connection and register your first player.

  • Play your scene in Unity.

  • Check the Users tab in your game dashboard and check if the player is registered successfully.


Requirements

Item
Requirement

Unity Version

2020.3 LTS or newer

Internet Access

Required for backend API

DynamicPixels Account

Required (Sign up on dynamicpixels.dev)

Best Practices

  • Keep your DynamicPixels plugin updated to benefit from the latest features and security improvements.

  • Regularly check the Release Notes for updates.

Last updated