Set up Unity project

  1. Open your Unity project.
  2. Click Window > Xsolla > Edit Settings in the main menu.
  3. Specify project parameters in the Inspector panel:
    1. In the Login ID field, specify the Login ID from Publisher Account.
Note
If you use your own authorization system, you do not need to fill in the Login ID field.
    1. In the Project ID field, specify the Project ID from Publisher Account.
    2. In the Web Store URL field specify the site address of the in-game items store (optional).
Note
You can create the site for an in-game item store using Site Builder. When setting up Site Builder, use the same Login project as when setting up the Cross-Buy asset.
    1. In the Authorization method field, select OAuth2.0.
    2. In the OAuth2.0 client ID field, specify Client ID received when setting up OAuth 2.0 in Publisher Account.

As a result, your project in Publisher Account will be connected to the demo scene.

  1. Launch the demo scene Assets > Xsolla > DemoCommon > Scene > Xsollus and make sure that the authorization and other functions are working correctly.
  2. Design an interface for the login system and other pages for your application.
Note
You can create your own solution by following Unity instructions, or use the demo scene as a template. To adapt the demo scene interface to your application, use the UI builder.
  1. Set up event handling according to your application logic using SDK methods. Follow the step-by-step tutorials to get started with basic SDK features.
Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.

Continue reading

Last updated: October 10, 2023

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!