SDKs for Unity / How to use snippets from demo project in your project
 Back to Docs

SDKs for Unity

  • Integration guide

  • Demo project

  • Authentication

  • Catalog

  • Subscriptions

  • Promotions

  • Item purchase

  • Player inventory

  • User account and attributes

  • Application build guides

  • Troubleshooting

  • How to use snippets from demo project in your project

    The demo project already contains the SDK files. If you included a demo project in your Unity project, you don’t need to integrate the SDK.

    1. Import the demo project into your Unity project.
    2. To connect the demo project to your project in Publisher Account, specify project parameters in the Inspector panel:
      • In the Login ID field, specify the Login ID from Publisher Account. If you use your own authorization system, leave the Login ID field empty.
      • In the Project ID field, specify the project ID from Publisher Account.

    1. Change other settings in the Inspector panel according to your needs (e.g., specify callback URL to redirect a user to after successful authentication, email confirmation, or password reset).
    2. Customize prefabs.
    3. Customize UI:
    4. Modify callbacks and set up event handling according to your application logic using SDK methods.

    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.
    Rate this page
    Rate this page
    Is there anything we can improve?

    Don’t want to answer

    Thank you for your feedback!
    Last updated: August 8, 2022

    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!