GithubHelp home page GithubHelp logo

isabella232 / store-unity-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xsolla/store-unity-sdk

0.0 0.0 0.0 91.24 MB

Xsolla Store plugin for Unity

Home Page: https://xsolla.com/products/store

License: Apache License 2.0

C# 94.44% ShaderLab 0.51% Java 0.10% Shell 0.46% Objective-C 2.93% C 0.74% Objective-C++ 0.35% Batchfile 0.46%

store-unity-sdk's Introduction

Game Commerce asset for Unity

Game Commerce asset is a set of classes and methods that you can integrate into your Unity app to work with Xsolla products.

After integration, you can use:

  • Login for authenticating users and managing the friend system and user account
  • In-Game Store for managing in-game purchases and player inventory in your app
  • Pay Station for setting up payments

Try our demo to learn more.

Game Commerce demo

The Game Commerce asset contains the necessary methods to use the features of all Xsolla products listed above. If you plan to use only some of them in your app, feel free to remove unnecessary modules from the asset.

We recommend using the game Commerce asset as is. For some specific situations, you can use other Xsolla assets:

  • Use Login & Account System asset if you are interested in the ready-made login system only.
  • Use Cross-Buy asset if you are going to publish your app on a platform that restricts the use of third-party payment tools.

Note: Game Commerce asset includes Login & Account System and Cross-Buy assets. You do not need to install them separately.

For a better understanding of which asset to choose, use the table:

Game Commerce asset Login & Account System asset Cross-Buy asset
In-game store
Virtual currency +
Virtual items +
Player inventory + +
Bundles +
Promotional campaigns +
Login
Authentication + + +
User management + + +
Payment UI +
Additional features
UI builder + + +
Battle pass +

Requirements

System requirements

  • 64-bit OS
  • Windows 7 SP1 and later
  • macOS 10.12 and later
  • The version of Unity not earlier than 2019.4.19f1

Target OS

  • Android
  • macOS
  • Windows 64-bit

Additionally, the asset supports creating WebGL build to run your application in a browser.

Note:

We recommend you use the Mono compiler for desktop platforms as it's compatible with the provided in-game browser. If you use other browser solutions, you can use the IL2CPP compiler instead. To create game builds for Android, you can use either Mono or IL2CPP compilers.

Integration

The following integration options are available:

Use Xsolla servers

Use your server

Choose this option if you want a ready-made server solution for monetization and in-game items management. After integration of the asset, you can use Xsolla Login, In-Game Store, Player Inventory, and Xsolla Pay Station. Choose this option if you have already implemented the game logic for authentication, in-game store, and player inventory on your servers and want to use Xsolla Pay Station.
Get started → Get started →

Usage

Xsolla provides APIs to work with it’s products. The Game Commerce asset provides classes and methods for API calls, so you won’t need to write boilerplate code. Use the tutorials to learn how you can use the asset methods.

Known issues

Conflict of multiple precompiled assemblies with Newtonsoft.json.dll

Issue description

The issue appears when importing the asset on Unity version 2020.3.10f1 and later. The following error message is displayed:

Multiple precompiled assemblies with the same name Newtonsoft.json.dll included on the current platform. Only one assembly with the same name is allowed per platform.

The conflict arises because the Newtonsoft.json.dll library is included in both the Unity Editor and the asset. The library is included in the versions 2020.3.10f1 and later of the editor. And the asset includes the library to support the earlier versions of Unity Editor.

Issue status: Fixed in 0.6.4.4.

Workaround

  1. Remove the Newtonsoft.json.dll library from the asset:
    1. Create a new Unity project.
    2. Install Game Commerce asset from Unity Asset Store.
    3. Go to Assets\Xsolla\Core\Browser\XsollaBrowser\Plugins directory.
    4. Remove Newtonsoft.Json.dll and Newtonsoft.Json.dll.mdb files.
  2. Restart Unity Editor.

Newtonsoft.json.dll could not be found

Issue description

The problem appears if you upgraded a pre-existing project to Unity version 2020.3.10f1 and later. Importing an asset from the Unity Asset Store into such a project is accompanied by many error messages like this:

The type or namespace name ‘Newtonsoft’ could not be found (are you missing a using directive or an assembly reference?)

The problem occurs because the Newtonsoft.json.dll library is not included in the asset for Unity version 2020.3.10f1 and later. As part of the editor, the library is supplied for versions 2020.3.10f1 and later, but when updating the project for these versions, the library requires manual installation.

Issue status: Fixed in 0.6.4.4.

Workaround

Install the Newtonsoft.json.dll library manually using the Unity Package Manager.

Unable to resolve reference UnityEditor.iOS.Extensions.Xcode

Issue description

The issue appears when using External Dependency Manager on Unity version 2020.1.0f1 and later.

When building the application, an error message is displayed:

Assembly 'Packages/com.google.external-dependency-manager/ExternalDependencyManager/Editor/Google.IOSResolver_v1.2.161.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.

Issue status: Fixed in 0.6.4.5.

Workaround

Install iOS Build Support module from Unity Hub.

Error occurred running Unity content on page of WebGL build

Issue description

The issue may appear when logging in WebGL build. The following error message is displayed:

WebGL error message

See details on cause of the issue on Unity Issue Tracker.

Issue status: Won’t fix.

Workaround

  1. Open Unity project.
  2. Click Edit > Project Settings in the main menu.
  3. In the Player section, go to the WebGL build settings tab.
  4. Go to the Other Settings section.
  5. Uncheck Strip engine code box.
  6. Go to the Publishing Settings section.
  7. Check the Decompression Fallback box.
  8. Create a new WebGL build.

Legal info

Explore legal information that helps you work with Xsolla.

Xsolla offers the necessary tools to help you build and grow your gaming business, including personalized support at every stage. The terms of payment are determined by the contract that you can sign in Xsolla Publisher Account.


License

See the LICENSE file.

Community

Join our Discord server and connect with the Xsolla team and developers who use Xsolla products.

Additional resources

store-unity-sdk's People

Contributors

alexeidemonov avatar alexeyuporov avatar alkislaya29 avatar alt3d avatar anna7744 avatar denisrakhimovxsolla avatar ilyinykhsa avatar kseniashabalina avatar leonidratanov avatar levinmaxim avatar marymakarova avatar mkurtlatskov avatar nsmirnov-xsolla avatar tustanivsky avatar xsolla-max avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.