|
1 | 1 | ---
|
2 | 2 | sidebar_label: Unity
|
3 | 3 | sidebar_position: 1
|
4 |
| -description: Set up the SDK in your Unity game. |
| 4 | +description: Get started with MetaMask SDK using Unity. |
5 | 5 | ---
|
6 | 6 |
|
7 | 7 | import YoutubeEmbed from '@site/src/components/YoutubeEmbed';
|
8 | 8 |
|
9 |
| -# Use MetaMask SDK with Unity |
| 9 | +# Get started using Unity |
10 | 10 |
|
11 |
| -Import [MetaMask SDK](../../../../concepts/sdk/index.md) into your |
| 11 | +Import MetaMask SDK into your |
12 | 12 | [Unity](https://assetstore.unity.com/packages/decentralization/infrastructure/metamask-246786) game
|
13 | 13 | to enable users to easily connect to their MetaMask Mobile wallet.
|
14 | 14 | The MetaMask Unity SDK supports macOS, Windows, Linux, iOS, Android, and WebGL.
|
@@ -95,7 +95,7 @@ You first must initialize by doing one of the following:
|
95 | 95 | - Check **Initialize On Start** on the component within the editor.
|
96 | 96 |
|
97 | 97 | This initializes the wallet instance, making it accessible from `MetaMaskUnity.Instance.Wallet`.
|
98 |
| -You can now make calls to the user's wallet using [provider API methods](../../../../reference/provider-api.md). |
| 98 | +You can now make calls to the user's wallet using [provider API methods](/wallet/reference/provider-api). |
99 | 99 |
|
100 | 100 | ### 4. Connect to MetaMask
|
101 | 101 |
|
@@ -137,7 +137,7 @@ The transport field is also required if you want to use it isolated from the can
|
137 | 137 | by the transport, then it generates the QR code for you.
|
138 | 138 |
|
139 | 139 | :::info Connect and sign
|
140 |
| -You can also [use the `connectAndSign` method](connect-and-sign.md) to |
| 140 | +You can also [use the `connectAndSign` method](../../how-to/gaming/unity/connect-and-sign.md) to |
141 | 141 | connect to MetaMask and sign data in a single interaction.
|
142 | 142 | :::
|
143 | 143 |
|
@@ -176,7 +176,7 @@ await wallet.Request(request);
|
176 | 176 | ```
|
177 | 177 |
|
178 | 178 | :::note
|
179 |
| -See the [Unity SDK API reference](../../../../reference/sdk-unity-api.md) for an overview of the |
| 179 | +See the [Unity SDK API reference](../../reference/unity-api.md) for an overview of the |
180 | 180 | API methods from the most important classes.
|
181 | 181 | :::
|
182 | 182 |
|
@@ -215,7 +215,7 @@ Package Manager or Asset Store.
|
215 | 215 |
|
216 | 216 | <summary>I can't find the SDK installation option.</summary>
|
217 | 217 |
|
218 |
| -If you don't see the option to [install the SDK](#2-install-the-sdk-for-unity) in your Unity menu, |
| 218 | +If you don't see the option to [install the SDK](#2-install-the-unity-sdk) in your Unity menu, |
219 | 219 | ensure you're on the latest Unity version and that you have no red errors printed in your console.
|
220 | 220 | This option not appearing is typically due to incorrect editor initialization, which you can
|
221 | 221 | usually resolve by restarting the editor or updating your Unity version.
|
@@ -261,7 +261,7 @@ The SDK is filled with precompiled libraries to save on runtime compilation.
|
261 | 261 |
|
262 | 262 | Once you have the MetaMask Unity SDK set up, you can:
|
263 | 263 |
|
264 |
| -- [Connect and sign in Unity.](connect-and-sign.md) |
265 |
| -- [Set up Infura in Unity.](infura.md) |
266 |
| -- [Interact with smart contracts in Unity.](smart-contracts/index.md) |
267 |
| -- [Enable human-readable addresses in Unity using Decentraweb.](dweb.md) |
| 264 | +- [Connect and sign in Unity.](../../how-to/gaming/unity/connect-and-sign.md) |
| 265 | +- [Set up Infura in Unity.](../../how-to/gaming/unity/infura.md) |
| 266 | +- [Interact with smart contracts in Unity.](../../how-to/gaming/unity/smart-contracts/index.md) |
| 267 | +- [Enable human-readable addresses in Unity using Decentraweb.](../../how-to/gaming/unity/dweb.md) |
0 commit comments