# Unity SDK

## Getting Started

### What you need

* Make sure you have Unity 2021.3.11f1 LTS or later available.
* [Get an endpoint](https://style-protocol.gitbook.io/sdk/fundamentals/broken-reference)
* [Get an Alchemy Key](https://style-protocol.gitbook.io/sdk/fundamentals/requirements/getting-an-alchemy-key) (optional)

### Set Up Unity Environment

1. Download the latest STYLE Protocol Unity SDK as a Unity package.
   * [Download](https://github.com/STYLE-Protocol/STYLE-Protocol-SDK-Unity/releases)
   * The filename is similar to `STYLE_Protocol_SDK_v0.1.unitypackage`.
2. Create a 3D Unity project using 2021.3.11f1 LTS or later.&#x20;
3. Install the **packages:**
   1. [Web3](https://github.com/ChainSafe/web3.unity) ([setup](https://docs.gaming.chainsafe.io/))
4. Select **Assets > Import Package > Custom Package** to import your downloaded STYLE Protocol SDK package.
5. Click **Import**.
6. Create Secrets.cs as a [template](https://github.com/STYLE-Protocol/STYLE-Protocol-SDK-Unity/blob/master/STYLE%20SDK/Secrets.cs.tmp) with Endpoints and Alchemy key (optional) substituted.&#x20;

## Using the SDK

You'll find the SDK into STYLE SDK folder and there is an example usage inside the Demo folder.

{% hint style="info" %}
[Available Methods](https://style-protocol.gitbook.io/sdk/referenence/for-developers/unity)
{% endhint %}

## Examples

### [Demo](https://style-protocol.github.io/STYLE-protocol-SDK-unity-Demo/)

<figure><img src="https://1668964791-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZZkKJcrjgP5iMKJ5CZhk%2Fuploads%2FKhkrPiqoebOJwbSic4Ub%2Fimage.png?alt=media&#x26;token=7d013391-44ff-4a2c-8dff-0e226ce6858d" alt=""><figcaption><p>STYLE Marketplace Example</p></figcaption></figure>
