> ## Documentation Index
> Fetch the complete documentation index at: https://sequence-0fb8d9e6-6256-forte-config.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# クイックスタート

> Sequence Unity SDK のクイックスタートドキュメントです。

<Steps>
  <Step title="Unity SDK のインストール">
    [OpenUPM](/sdk/unity/installation#openupm) から Sequence の Unity SDK の最新版をインストールするか、[Unity の Package Manager UI](/sdk/unity/installation#or-using-package-manager-ui) を利用して、以下の Git URL を使用してください: `https://github.com/0xsequence/sequence-unity.git?path=/Packages/Sequence-Unity`
  </Step>

  <Step title="SDK の設定">
    [Sequence Builder](https://sequence.build) にサインインし、プロジェクトを作成します。

    下記の手順で Builder から設定ファイルをダウンロードしてください。

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-6256-forte-config/oiWM_wk08HN-3oFs/images/unity/builder_config_file.png?fit=max&auto=format&n=oiWM_wk08HN-3oFs&q=85&s=070590b6cc1845e934e18dbba4301760" width="1696" height="1450" data-path="images/unity/builder_config_file.png" />
    </Frame>

    このファイルを `Resources` フォルダのルートに配置します。
  </Step>

  <Step title="ログイン処理の統合">
    まず、ストレージからウォレットセッションが利用可能かどうかを確認してください。

    ```csharp theme={null}
    bool recovered = await EmbeddedWalletAdapter.GetInstance().TryRecoverWalletFromStorage();
    ```

    もし `false` が返ってきた場合は、ユーザーにサインインを促してください。Package Manager UI から `Setup` サンプルをインポートすると、プロジェクトの `Resources/` ディレクトリに一連のボイラープレートが配置されます。[ログイン用ボイラープレート](/sdk/unity/bootstrap_game#login) を作成し、指定したメールアドレスにワンタイムパスワードを送信できるようにしましょう。

    最初の機能を統合できたら、[追加のログインプロバイダー](/sdk/unity/onboard/authentication/intro)（Google、Apple、PlayFabなど）も利用できます。

    ```csharp theme={null}
    BoilerplateFactory.OpenSequenceLoginWindow(parent);
    ```

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-6256-forte-config/oiWM_wk08HN-3oFs/images/unity/unity_boilerplate_login.png?fit=max&auto=format&n=oiWM_wk08HN-3oFs&q=85&s=04358a76c1d157c7b5efd431d2b07916" width="1144" height="500" data-path="images/unity/unity_boilerplate_login.png" />
    </Frame>
  </Step>

  <Step title="Sequence の機能をテストする">
    SequenceのUnity SDKには、ゲームを素早く始めるためのさまざまな[ボイラープレート](/sdk/unity/bootstrap_game)が用意されています。
    設定が完了したら、プレイヤープロフィールやインベントリ、ゲーム内ショップを表示するプレハブを作成できます。
    [プレイヤープロフィールの統合方法](/sdk/unity/bootstrap_game#player-profile)もご覧ください。

    ```csharp theme={null}
    BoilerplateFactory.OpenSequencePlayerProfile(parent, wallet, chain);
    ```

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-6256-forte-config/oiWM_wk08HN-3oFs/images/unity/unity_boilerplate_profile.png?fit=max&auto=format&n=oiWM_wk08HN-3oFs&q=85&s=7a98aed768a0dc9d81ebda12786c41c0" width="1144" height="500" data-path="images/unity/unity_boilerplate_profile.png" />
    </Frame>
  </Step>

  <Step title="自分で統合する">
    `EmbeddedWalletAdapter`を使えば、数行のコードで素早く統合を始められます。
    さらにカスタマイズしたい場合は、[ユーザー認証](/sdk/unity/onboard/authentication/intro)や[トランザクション送信方法](/sdk/unity/power/write-to-blockchain)など、他のドキュメントもご参照ください。

    ```csharp theme={null}
    EmbeddedWalletAdapter adapter = EmbeddedWalletAdapter.GetInstance();

    // Recover your wallet from storage
    bool recovered = await adapter.TryRecoverWalletFromStorage();

    // Otherwise, create a new session via Google Sign-In
    bool successful = await adapter.GoogleLogin();

    // Next, let's send a transaction
    string recipientAddress = "0xabc123..";
    string currencyAddress = "0xabc123..";
    BigInteger amount = 1000;

    await adapter.SendToken(recipientAddress, amount, currencyAddress);
    ```
  </Step>
</Steps>
