ノート: このガイドでは、ビルトインレンダーパイプライン ではなく、ユニバーサルレンダーパイプライン (URP) を選択していることを推奨し、前提としています。
Unity バージョン 2019 LTS またはそれ以降のバージョンをインストールします。Unity のインストール を参照してください。
Create a new project with the 2D template.
In the Package Manager, install the latest URP package version; see Installing the Universal Render Pipeline into an existing Project.
Set up a 2D Renderer; see the 2D Renderer Setup steps.
必要なオプションのパッケージがあればインストールします。パッケージのインストール を参照してください。
Most packages you need to make a 2D game in Unity are included in the Unity Editor. The following table lists the packages included by default when you choose the 2D template:
パッケージ | 説明 |
---|---|
2D Animation | 2D Animation は、スプライトにスケルトンアニメーションを適用するために必要なツールやランタイムコンポーネントを提供します。 |
2D Pixel Perfect | 2D Pixel Perfect パッケージには、Pixel Perfect Camera コンポーネントが含まれており、ピクセルアートを様々な解像度で鮮明に保ち、動きにも安定させることができます。 |
2D PSD Importer | 2D PSD Importer パッケージは、Photoshop からマルチレイヤーの PSD ファイルをインポートすることができます。スプライトや、キャラクターのリグに使用できます。 |
2D Sprite | Sprite Editor は、Sprite アセットの作成と編集を行うためのエディター内環境を提供します。Sprite Editor では、スプライト関連データを編集するためのカスタムの動作を追加することができます。 |
2D SpriteShape | 2D Sprite Shape は、ベクトル描画ツールのように、有機的な形状や地形を作成することができます。例えば、塗りつぶしテクスチャや境界線スプライトを選択することができます。 |
2D Tilemap Editor | 2D Tilemap Editorでは、正方形、六角形、アイソメトリックのタイルを使って、グリッドベースの世界を作ることができます。タイルパレットにタイルを追加し、さまざまな設定やブラシを使用してタイルグリッドをペイントしたり、塗りつぶしたりできます。追加ツールにより、タイルアセットにスマートドローイング、ランダム化、アニメーションを追加することができます。 |
以下の表は、2D ゲーム開発に特に役立つと思われる、インストール可能なオプションパッケージの一覧です。
パッケージ | 説明 |
---|---|
Shader Graph | Shader Graph は、シェーダーを視覚的に構築することができます。 |
Cinemachine | Cinemachine パッケージは、Unity Camera を操作するための高度な機能を提供するモジュール群です。 |
2D Tilemap Extras | 2D Tilemap Extras パッケージには、再利用可能な 2D と Tilemap Editor スクリプトが含まれており、独自のプロジェクトに使用することができます。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.