Click Create and Add.įor the sake of keeping files organized, open the Assets folder in the Project window, and create a folder called Scripts. Select New Script, name the script something like "PlayerController," and choose a programming language. This will clear up your workspace a bit.Ĭlick Add Component at the bottom of the Inspector window. Minimize components that you don’t want to see open in the Inspector by clicking the down arrows to the left of the name of each component. (See video for what happens when you turn off the player's collider component.) You can turn components on and off by checking and unchecking the box next to the component’s name. If you turn off a collider, than the object becomes like a ghost, able to pass through other objects. has a component called a “collider.” This is the physical area of the screen where that object is considered to take up space. You will notice that each object comes with a variety of “components” added to it that you can see in the Inspector. Make the player subject to the laws of physics by clicking Add Component at the bottom of the Inspector panel with the player selected. Select the sphere in the Hierarchy, and rename it “Player.” Reset its transform. Go to Game Objects – Create Other – Sphere.
UNITY 3D DOWNLOAD
You can download characters from various places online, such as the Unity Store, but for this tutorial, we’re just going to use one of the built-in Game Objects for the player. Make the floor's scale in the X, Y, and Z directions 1/10 of the scale you used to size the walls. Give the floor a -0.5 transform in the Y-direction to ensure it lines up neatly with the four walls. Note: you need to hit enter after renaming, or else the change may not take effect. Rename it "Floor," and drag it under Stage in the Hierarchy. Select all four “Walls” and drag them under the “Stage” Game Object.Īdd a plane Game Object by selecting Create in the Hierarchy panel and use it for the floor. Click and drag while holding the ALT key to rotate the view.Ĭreate an empty Game Object, using the Game Object dropdown (Create Empty) at the top of the screen. Note: To look around the scene view, click the middle mouse button to pan and scroll to zoom in and out. Drag them into position and/or use the transform options for each cube to make an arrangement that looks like an arena. It will look like you only have one wall because they are identical and therefore occupying the same point in space. Right click “Wall” in the Hierarchy panel, and duplicate it three times, so you have four walls. Scale the cube in the X direction to make it long and wall-like. Rename it “Wall” by double clicking its name in Hierarchy or using the Inspector panel. It is good practice to do this whenever you create a new Game Object. Reset the cube’s transform by right-clicking “Transform” in the Inspector panel. To do this, go to Game Object – Create Other – Cube, or use the Create menu in the Hierarchy window. The simplest way to create a stage in Unity is to add cubes. Just select an object in the Hierarchy window or double-click on an object in the Scene window to show its attributes in the Inspector panel.
Inspector – this is where you customize aspects of each element that is in the scene. by clicking Create under the Project window. Project – shows the files being used for the game. This can also be done by using the GameObject dropdown menu at the top of the screen. You can create new elements by clicking Create and selecting the type of object you want. Hierarchy – lists all elements you have added to the scene. You can test out your game in this window by clicking the Play button in the top, center of the screen. Game – shows the view that the main camera sees when the game is playing. There is a block in the upper right corner showing the spatial orientation of the scene. It shows what elements you have in your game and where they are relative to each other.
Scene – this is where the game making happens. See the five pictures at the top of the step for images of each window. They are the Scene, Game, Hierarchy, Project, and Inspector windows.
UNITY 3D WINDOWS
There are five main windows that you are using most of the time with Unity. I like the Tall layout, though I find it helpful to put the Game view below the Scene view. Alternatively, you can use the default layouts provided with Unity by clicking the drop bar under Layout in the top left of the screen.
Every window can be clicked and dragged into position. The first thing you may want to do is customize the layout.