Welcome guest

Unity API Documentation

Analytics, level sharing, leaderboards and more for Unity web, mobile and tablet games!

Version 1.91

Current as of 11/14/2011. If you see or have any problems let us know!

Setting up the Unity API

Import the plugin to your project

Select Assets -> Import Package -> Custom Package, then browse to where the Playtomic.unitypackage is where you unzipped the file.

Initialize the API and log the view

The first thing you must do is initialize the API. Without doing this none of the services will work:

Playtomic.Initialize(gameid, "guid", "apikey");

After doing that log the view. If your game is mobile then do this when the application opens or resumes:

Playtomic.Log.View();