Skip to content

Commit

Permalink
Document updating unity sdk (MetaMask#1001)
Browse files Browse the repository at this point in the history
* Document updating unity sdk

* reviewer suggestion
  • Loading branch information
alexandratran authored Nov 17, 2023
1 parent fda756a commit d2738f6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion wallet/how-to/connect/set-up-sdk/gaming/unity.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ development platform:
For all platforms, also set the **Scripting Backend** in **Player Settings** to **IL2CPP**, and set
**IL2CPP Code Generation** in **Build Settings** to **Faster (smaller) builds**.

### 2. Install the SDK for Unity
### 2. Install the Unity SDK

Download the
[MetaMask SDK for Unity](https://assetstore.unity.com/packages/decentralization/infrastructure/metamask-246786)
Expand Down Expand Up @@ -75,6 +75,8 @@ If you don't have TextMeshPro installed, the Unity editor automatically prompts

</details>

When new versions of the Unity SDK are released, [update the Unity SDK in your project](#update-the-unity-sdk).

### 3. Initialize MetaMask

The main class you interface with is called `MetaMaskWallet`.
Expand Down Expand Up @@ -190,6 +192,20 @@ Create a new configuration by right-clicking on the project window and navigatin
**MetaMask > Config**.
Name the new configuration and use it when initializing the `MetaMaskUnity` instance.

## Update the Unity SDK

Update your project's version of the MetaMask Unity SDK to ensure that your project uses the latest
SDK functionalities and improvements.
To update the SDK to the latest version available on the Unity Asset Store:

1. Update and import the latest package using the Unity Package Manager.
2. Go to **Tools > MetaMask > Install in Unity**.
3. Select the **Already Installed** button.
This updates the SDK in your project.

Alternatively, you can delete the existing MetaMask folder in your project and re-import it from the
Package Manager or Asset Store.

## FAQS

<details>
Expand Down

0 comments on commit d2738f6

Please sign in to comment.