Comment migrer vers la version 1.0.0 ou une version ultérieure du SDK
Modifications de structure dans la version 1.0.0
- Demo functionality and UI elements moved to a separate project. The SDK only contains classes and methods for working with Xsolla products.
- Changed SDK structures and classes, including:
- Renamed the
XsollaLogin
class toXsollaAuth
. - Split the
XsollaStore
class intoXsollaCatalog
,XsollaCart
, andXsollaOrders
.
- Renamed the
Note
To maintain backward compatibility, the original classes have been retained and marked as deprecated. Calls are proxied to new methods.
Remplacement de package
- Open your Unity project.
- Delete the
Xsolla
folder. - Download the SDK or demo project package.
Note
If you use code snippets or a demo scene UI in your project, download the demo project package because it already contains the SDK files. If you included a demo project in your Unity project, you don’t need to integrate the SDK.
- Unzip the package.
- In the Unity Editor, go to
Assets > Import Package > Custom Package in the main menu and select the SDK or demo project package. - In the dependency warning window, click
Install/Upgrade . As a result, theImport Unity Package window opens with a list of files checked and ready for installation. The list will indicate which files remain unchanged, which will be added, and which will be replaced. - Click
Import . - Test your application and make changes to the project code if necessary.
Cet article vous a été utile ?
Merci pour votre commentaire !
Nous examinerons votre message et l'utiliserons pour améliorer votre expérience.Faute de frappe ou autre erreur dans le texte ? Sélectionnez le texte concerné et appuyez sur Ctrl+Entée.