Requires Unity 2017.2+
Unity 5.6 and earlier are not supported. The plugin uses
UnityWebRequest features introduced in 2017.1, and
Screen.safeArea for mobile notch handling introduced in 2017.2.
Supports Android 6+, iOS 7+.
You can install plugin from Github. Import the provided .unitypackage in your project, or paste the Monetizr folder from the Assets folder in your project.
Note about provided code examples
All plugin code is contained within the Monetizr namespace. If given code examples are not working make sure you have
using Monetizr; at the top of your C# script.
Monetizr is implemented as a singleton prefab. You can find this prefab at Monetizr/Prefabs/Monetizr Prefab. Place this in the first scene of your game. Monetizr code makes sure that there is only 1 prefab instantiated.
Out-of-the-box it comes preconfigured with our test access token.
Showing the product
Use the public test token "4D2E54389EB489966658DDD83E2D1" to show the product "Sample shirt".
Product page using default dark color scheme
The plugin is written using the singleton pattern in order to simplify the workflow. At any time, you can access the current