Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Closeid | Platform specific Product ID. |
stores | Array of platform names using this Product ID. |
Add a product ID which is supported by a list of store platform names.
Here is an example of adding to an IDs
:
#pragma strict public class MyGameClass extends MonoBehaviour { function Awake() { var productIds: IDs = new IDs(); productIds.Add("levelpackfoo", [GooglePlay.Name, AppleAppStore.Name]); } }
using UnityEngine; using UnityEngine.Purchasing;
public class MyGameClass : MonoBehaviour { void Awake() { IDs productIds = new IDs(); productIds.Add("levelpackfoo", new string[] {GooglePlay.Name, AppleAppStore.Name}); } }