Get started with Unity IAP
Follow this workflow to install the In-App Purchasing package and configure Unity IAP for your project.
阅读时间1 分钟最后更新于 9 天前
This guide goes through the initial setup for Unity In-App Purchasing (IAP). To successfully use Unity IAP, perform the following actions:
- Meet all the prerequisites.
- Install the IAP package.
- Enable and configure the IAP service for your project.
Prerequisites
Before you begin, ensure you meet the following requirements:- A Unity project running on a supported Unity version.
- A project linked to a Unity Project ID in the Unity Editor (Services > General Settings).
Install the IAP package
To begin using the IAP SDK, install the In-App Purchasing package.- In the Unity Editor, select Window > Package Manager.
- Select the Unity Registry tab.
- Search for In-App Purchasing (or com.unity.purchasing).
- Select the package, then select Install.
Enable and configure the IAP service for your project
- In the Unity Editor, select Services > General Settings. Unity opens the Services General Settings page.
- Select your organization from the Organization dropdown.
- Choose whether to link an existing cloud project or create a new one for this Unity project:
- To link an existing cloud project, select the project from the Cloud project dropdown and select Link Unity project to cloud project.
- To create a new project, select Create a new cloud project and follow the steps.
- The Unity Project ID appears.
- Answer the COPPA compliance question.
- From the left navigation menu, select Services > In-App Purchasing.
- Use the toggle next to In-App Purchases to enable IAP.