# HMS Unity Plugin (Unofficial)

> Add Huawei Mobile Services to your Unity game with Account Kit, In-App Purchases and editor tools. Guides, API reference and samples.

Source: https://docs.mgonnacrusht.co.uk/hmsunity/

The HMS Unity Plugin (Unofficial) connects a Unity game to Huawei Mobile Services (HMS) on Huawei
phones and tablets. It handles the Android side for you: the Huawei SDK dependencies, the
AppGallery Connect configuration and the Java bridge, so you work in C#.

<Aside type="caution" title="Documentation in progress">
  The plugin and these pages are being written. Pages describe what each part covers; full
  instructions and the API reference are added as each part is finished.
</Aside>

## What is included

<CardGrid>
  <Card title="Core" icon="setting">
    Starts the plugin, checks whether HMS Core is available on the device and reports errors in one
    consistent format.
  </Card>
  <Card title="Account Kit" icon="padlock">
    Sign players in with their HUAWEI ID, silently or with the sign-in screen, and get an ID token or
    authorisation code for your server.
  </Card>
  <Card title="In-App Purchases" icon="star">
    Product details, purchases, consumption and owned purchases. Sold as a separate kit.
  </Card>
  <Card title="Editor tools" icon="seti:config">
    Settings in Project Settings, an integration check with a copyable report, and a package
    version checker.
  </Card>
</CardGrid>

The base package (Core, Account Kit and the editor tools) is free. In-App Purchases is a separate
paid kit that builds on it.

## Requirements

- Unity 6 (6000.x). Unity 2022.3 support is planned after the first release.
- Android build support in Unity.
- A Huawei developer account and an app in AppGallery Connect.

## Start here

<CardGrid>
  <LinkCard title="Set up the plugin" href="/hmsunity/setup/" description="Install the packages, add your AppGallery Connect file and check the integration." />
  <LinkCard title="API reference" href="/hmsunity/reference/" description="Every class and method, with parameters, return values and errors." />
</CardGrid>

The HMS Unity Plugin (Unofficial) is an independent product by MgonnacrushT Limited. It is not made,
endorsed or supported by Huawei. Huawei, HMS and AppGallery are trademarks of Huawei Technologies
Co., Ltd.
