SDK para Unity / Información general
  Volver a Documentos

SDK para Unity

Información general

The player inventory contains the user’s items that they bought or received according to the game logic.

Nota
When buying or receiving a bundle, items that are a part of the bundle are added to the inventory. No additional steps are required to unpack the bundle.

The inventory solution is based on the In-Game Store product. After a successful purchase, items are added to the player inventory automatically on the Xsolla side.

Users are identified via the authentication system based on the Login product. If you have configured your own authentication system, you can use a user JWT for client methods.

Instrucciones

Learn about advanced setups from our how-tos.

Cómo utilizar el sitio web de la tienda en el juego con kits SDK

Implement the sale of virtual items and virtual currency outside the game via the store site. The purchased items and currency will be available in the player’s inventory.

To integrate your store site with the SDK:

  1. Create a store site.
  2. Specify the site address of the in-game store in the application code.
  3. Implement the logic for your application to work with the store site.

Crear un sitio web de tienda

You can create a store site with Site Builder by following the instructions for connecting a store on the site.

Aviso
By default, when creating a site, a new Login project is created in Publisher Account. When setting up Site Builder, use the same Login project as when you set up the SDK.

If you want to connect a store site that was created using a different solution, follow the instructions for creating a store.

Recomendaciones para que la lógica para su aplicación funcione con el sitio web de la tienda

Follow these recommendations when developing your application:

  1. Synchronize the fields of user registration and authorization in your application and in the Login widget on the store site:
    • If a user email and password are used for registration and authorization, set the username equal to the email in the application.

Nota
The widget uses the user’s email and password by default for authorization and registration.
    • If you use a username, user email and password for registration and authorization, contact your Account Manager to change the Login widget fields.
  1. When navigating to the store site from the application client, implement pass-through user authorization. To do this, the user token must be passed in the URL parameters. An example of authorization is shown in the demo scene for SDK.
¿Te ha resultado útil este artículo?
¡Gracias!
¿Hay algo en lo que podamos mejorar? Mensaje
Lo sentimos
Por favor, cuéntanos por qué no te ha resultado útil este artículo. Mensaje
¡Gracias por tu mensaje!
Nos ayudará a mejorar tu experiencia.
Ocultar

Seguir leyendo

Última actualización: 3 de Julio de 2024

¿Has encontrado una errata u otro error de texto? Selecciona el texto y pulsa Ctrl+Intro.

Informar de un problema
Nos esforzamos por ofrecer contenido de calidad. Tus comentarios nos ayudan a mejorar.
Déjanos tu correo electrónico para que te podamos responder
¡Gracias por tu mensaje!