# Unity を IPFS にホストする方法 **Published by:** [masia](https://paragraph.com/@masia02-2/) **Published on:** 2021-12-09 **URL:** https://paragraph.com/@masia02-2/unity-ipfs ## Content 概要Unity :ゲームを作成し、IPFS 用にエクスポートします。 Github:デプロイのためにゲームをGithubにアップロードします。 Fleek:FleekはGithubからコンテンツを取得し、IPFSに公開します。Githubへのアップデートは自動的に更新されます。 Unityのセットアップは割愛します。 作成したゲームをエクスポートします。 その際、WebGLを選択しプラットフォームを切り替えます。 プロジェクトをビルドして保存します。GithubGithubアカウントを作成し、リポジトリに移動して、[新規]をクリックします。 リポジトリに名前を付けます。必要に応じてREADMEを初期化します。 UnityからエクスポートしたファイルをGithubリポジトリに追加します。 私は試しにGithubにアップされている https://github.com/MozillaReality/unity-webxr-export をフォークしてIPFSにアップしてみました。 こちら**Setting up a Unity project for WebXR**を参考に後ほど個人的にいじってみたいと思います。FleekFleek.coにSIGN UPしてGithubでログインします。 「Add New Site」ボタンで新しいサイトを追加します。fleek hosting teams「Connect with Github」ボタンでGithubに接続します。fleek new site2Githubアカウントを選択します。 プロジェクトへの権限を許可します。 接続したら、プロジェクトを選択します。fleek new site3追加の設定はいりません。「Deploy Site」ボタンでサイトを展開します。fleek new site4◯◯◯.on.fleek.co にホストされます。fleek hosting5例:https://unity-webxr-export.on.fleek.co/ 独自のカスタムドメインも設定できます。ブロックチェーンドメインも可能です。終わりにこれでUnityで制作したWeb3ゲームなどをホストできます。 別途WebのSEOとしてOGPなども設定すると良いでしょう。 ## Publication Information - [masia](https://paragraph.com/@masia02-2/): Publication homepage - [All Posts](https://paragraph.com/@masia02-2/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@masia02-2): Subscribe to updates - [Twitter](https://twitter.com/masia02): Follow on Twitter