๐Ÿ“„ Instructions for Unity SDK

๐Ÿ“‹ 3 step process to start selling your own game merchandise

Version: 3
Date: 01/12/2019
Process:

๐Ÿ‘จโ€๐Ÿ’ป Step 1. Installation

1.1. Download the Unity plugin. Supports iOS, Android, WebGL and Desktop builds.
1.2. Import the package into your Unity project.ย 
  • 1.2.1 Assets => Import Package => Custom Package => TheMonetizr.unitypackage
  • If you see an error: The type or namespace name 'iOS' does not exist in the namespace 'UnityEditor'. Are you missing an assembly reference? Then add IOS as build target for Unity
1.3. Drag TheMonetizr โ€œprefabโ€ into your first scene.
1.4. Make sure to fill in the following values (API keys are being given per request, info@monetizr.com, in Play Vue case API key is 4wgcet3cc192k8ae818e6a2728f3f1a7 and the shop domain remains the same, apple pay merchant id has to be added ):

๐Ÿ‘จโ€๐Ÿš€ Step 2. Link products

2.1. ย Link the products with a specific product ID and call ย TheMonetizr product view when the user clicks on a preview, a price button, or after a game achievement:
2.2. To open the product view after a click on a price button, a preview or after a game achievement, use one of the following methods:
  • a) an event handler (enter the Product ID, in Play Vue case product SEO optimized link) or
  • b) in code: Monetizr.Instance.ShowProductWithID("<Product ID>"); ย 
  • in Play Vue case product SEO optimized link

Showing 1-ticket code:
  • Monetizr.Instance.ShowProductWithID(โ€œ1-ticketโ€)
Showing 3-ticket code:
  • Monetizr.Instance.ShowProductWithID(โ€œ3-ticketsโ€)

Showing 30-ticket code:
  • Monetizr.Instance.ShowProductWithID(โ€œ30-ticketsโ€)


2.3. Run the game and check in the console if the correct product is called. TheMonetizr products will only be shown after you build your game.

2.4. Build your game and make sure the minimum build target in your "Build Settings" for iOS Devices is set to: iOS 8.0.ย 

๐Ÿ‘• Step 3. Create merch store (optional, in this case you will be making a new collection in your own shop)



3.1. Create a new view for the merch store. See the wireframe on the right.

3.2. For each product, create a block that consists of both, a product image and a button with the price.