The Hierarchy window contains a list of every GameObject in the current Scene. Some of these are direct instances of Asset files (like 3D models), and others are instances of Prefabs, which are custom GameObjects that make up most of your game. When you add or remove GameObjects the Scene (or when your gameplay mechanic adds and removes them), they appear and disappear from the Hierarchy as well. By default, the Hierarchy window lists GameObjects by order of creatin, with the most recently created GameObjects at the the bottom. You can re-order the GameObjects by dragging them up or down, or by making them “child” or “parent” GameObjects (see below).
Unity は 親子関係 と呼ばれる概念を使用しています。ゲームオブジェクトのグループを作成すると、一番上のゲームオブジェクトまたはシーンは “親ゲームオブジェクト” と呼ばれ、その下にグループ化されたすべてのゲームオブジェクトは “子ゲームオブジェクト” または “子” と呼ばれます。ネストされた親子ゲームオブジェクト (トップレベルの親ゲームオブジェクトの “子孫” と呼ばれます) を作成することもできます。
親のゲームオブジェクトの矢印 (名前の左側) をクリックして、子を表示/非表示にできます。Alt キーを押しながら矢印をクリックすると、直接の子ゲームオブジェクトに加えて、子孫ゲームオブジェクトすべての表示を切り替えます。
あるオブジェクトを他のゲームオブジェクトの “子” にするには、Hierarchy ウィンドウ内で “子” にしたいゲームオブジェクトを “親” にしたいゲームオブジェクトの上にドラッグアンドドロップします。
ゲームオブジェクトを他のゲームオブジェクトと同レベルにドラッグアンドドロップして、それらを “兄弟” にすることもできます。つまり、同じ親ゲームオブジェクトの下にある子ゲームオブジェクトにします。既存のゲームオブジェクトの上または下に、青い横線が表示されるまでゲームオブジェクトをドラッグし、そこにドロップして既存のゲームオブジェクトと同レベルに配置します。
子オブジェクトは親オブジェクトの動きと回転を継承します。これに関する詳細は、Transform コンポーネント を参照してください。
Hierarchy ウィンドウのオブジェクトの順番は英数字の順番にすることができます。メニューバーから Windows では Edit > Preferences を、OS X では Unity > Preferences を選択し、Preferences ウィンドウを開きます。Enable Alpha Numeric Sorting を有効にします。
これを有効にすると、Hierarchy ウィンドウの右上にアイコンが表示され、Transform ソート (デフォルト) か Alphabetic (英数字順) ソートを切り替えることができます。
The Scene visibility controls in the Hierarchy window allow you to quickly hide and show GameObjects in the Scene view without changing their in-game visibility. This is useful for working with large or complex Scenes where it can be difficult to view and select specific GameObjects.
詳細は、シーン上の可視性 を参照してください。
Hierarchy ウィンドウ上で一度に複数のシーンを開くことも可能です。詳しくは 複数シーンの編集 を参照してください。
2019–01–30 修正されたページ
Toggling Scene Visibility added in 2019.1 NewIn20191
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.