Unity Guide for newbies - Part II


Unity Scene - Hierarchy Window

A key area of the Unity interface is the Hierarchy Window, which is tied to the Scene View. When you click on a GameObject in the Hierarchy Window, it becomes active in the Scene View. 

The Hierarchy Window lists all the objects in your game (like characters, music, effects, etc.) in alphabetical order. But you can also group certain objects together by creating a hierarchical order and assigning Parent and Child categories.

What is Hierarchy Window?

The Hierarchy window contains a list of every GameObject (referred to in this guide as an “object”) 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 objects that make up most of your game. As objects are added and removed in the Scene, they will appear and disappear from the Hierarchy as well.
By default, objects are listed in the Hierarchy window in the order they are made. You can re-order the objects by dragging them up or down, or by making them “child” or “parent” objects (see below).

Parenting 

Unity uses a concept called Parenting. When you create a group of objects, the topmost object or Scene is called the “parent object”, and all objects grouped underneath it are called “child objects” or “children”. You can also created nested parent-child objects (called “descendants” of the top-level parent object)

In this image, Child and Child 2 are the child objects of Parent. Child 3 is a child object of Child 2, and a descendant object of Parent. The default Hierarchy window view when you open a new Unity project


Making a child object


To make any object the “child” of another, drag and drop the intended child object onto the intended parent object in the Hierarchy.

In this image, Object 4 (selected) is being dragged onto the intended parent object, Object 1 (highlighted in a blue capsule).




In this image, Object 4 (selected) is being dragged onto the intended parent object, Object 1 (highlighted in a blue capsule).

You can also drag-and-drop an object alongside other objects to make them “siblings” - that is, child objects under the same parent object. Drag the object above or below an existing object until a horizontal blue line appears, and drop it there to place it alongside the existing object.In this image, Object 4 (selected) is being dragged onto the intended parent object, Object 1 (highlighted in a blue capsule).
You can also drag-and-drop an object alongside other objects to make them “siblings” - that is, child objects under the same parent object. Drag the object above or below an existing object until a horizontal blue line appears, and drop it there to place it alongside the existing object.

Alphanumeric sorting


The order of objects in the Hierarchy window can be changed to alphanumeric order. In the menu bar, select Edit > Preferences in Windows or Unity > Preferences in OS X to launch the Preferences window. Check Enable Alpha Numeric Sorting.
When you check this, an icon appears in the top-right of the Hierarchy window, allowing you to toggle between Transform sorting (the default value) or Alphabetic sorting.

Check this videos out - 






KEEP ON CREATING!!!!


Comments

Popular posts from this blog