This will move the camera in the scene view to focus on the selected GameObject.īesides the built-in icons, you can use your own by clicking the Other… button and selecting an image from the assets. If you don’t see the label immediately, select Managers in the Hierarchy and press F. If you look at the Scene view, you’ll see a blue label with “Managers” written inside it. Try assigning Managers a blue icon from the top row by clicking on the cube icon and selecting the second icon in the list. You can assign an icon to GameObjects to make it easier to find them in the Scene view. You can see and edit the attributes at the very top of the Inspector.įrom the top left to the bottom right, these are: Icon Select your new GameObject in the Hierarchy and take a look at the Inspector.Įvery GameObject has two things in common: The default name of a newly created GameObject is simply “GameObject”, but you can rename GameObjects by slowly double-clicking it in the Hierarchy or by pressing F2 on your keyboard. Go ahead and add a new empty GameObject to the scene by clicking the Plus icon at the top left of the Hierarchy and selecting Create Empty. Any newly created Unity scene comes supplied with a Main Camera and a Directional Light, as these provide you with a way to view the game world - the light shines on all models and provides shadows while the camera renders a 2D image to your screen. Take a look at the Hierarchy - there are two GameObjects already present. Every single object in the Hierarchy is a GameObject! GameObjects are the fundamental building blocks of every Unity project. If you take a look at the Game view, you’ll notice there’s nothing there except for a dark gray background.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |