/CloudOnce

Unified Game Services API for Unity

Primary LanguageC#MIT LicenseMIT

logo_small.png

CloudOnce - Unified Game Services API

CloudOnce is a Unity plug-in that provides a unified game services API for Google Play Game Services and Apple Game Center (iOS & tvOS). Ease of use is the primary focus for the plug-in, but it also attempts to satisfy the needs of power users.

Getting Started

Download the latest release and then check out the Getting Started guide for an overview of available features and how to implement them.

API Documentation

If you need more technical or more complete documentation of the plug-in, you can check out the API documentation.

Building

If you want to modify CloudOnce and build your own unitypackage, there are a few required steps.

For the PluginDev Unity project to compile you need to download and import Play Services Resolver for Unity.

Because CloudOnce includes Play Services Resolver for Unity, building a new unitypackage needs to be done from command-line or with a build script (more info). Below is an example of how to do it on Windows. Change the paths to fit your environment.

Windows example:

  1. Download the latest Play Services Resolver for Unity unitypackage
  2. Open cmd
  3. Enter "C:\Program Files\Unity531\Editor\Unity.exe" -batchmode -projectPath "C:\GitHub\CloudOnce\source\PluginDev" -exportPackage Assets/Extensions Assets/Plugins "C:\GitHub\CloudOnce\build\source.unitypackage" -quit
  4. Enter "C:\Program Files\Unity531\Editor\Unity.exe" -batchmode -gvh_disable -createProject ./CloudOnce -importPackage "C:\GitHub\CloudOnce\build\play-services-resolver-1.2.54.0.unitypackage" -quit
  5. Enter "C:\Program Files\Unity531\Editor\Unity.exe" -batchmode -gvh_disable -projectPath "C:\GitHub\CloudOnce\build\CloudOnce" -importPackage "C:\GitHub\CloudOnce\build\source.unitypackage" -exportPackage Assets "C:\GitHub\CloudOnce\current-build\CloudOnce-v2.4.4.unitypackage" -quit
  6. Party hard

History

This plug-in was originally developed for internal use by Trollpants Game Studio. Sindri Jóelsson wrote most of the original code, and Jan Ivar Z. Carlsen assisted by writing the implementations for Google Play and iOS.

In January 2015 work began to make it into a commercial product. From that point, Jan Ivar has been the sole developer on the project. The first commercial version was released on the Asset Store on May 6th 2015.

CloudOnce has evolved a lot since then, and on June 1st 2016 it was made open-source. This was done both due to time constraints (both creators have other full time jobs), and that the financial incentive wasn't large enough to justify the support responsibilities that comes from selling a commercial product.

Trollpants Game Studio games

All the games created by Trollpants Game Studio have been released as open source. They all use CloudOnce and have been updated to run in Unity 2017.3. Check them out for examples of how CloudOnce can be used.

License

The contents of this project is licensed under the MIT license, unless other is specified in file header. See LICENSE file in the project root for full license information.