To add a 3D object in Unity, you typically access the creation menus within the editor. This allows you to place various built-in 3D shapes, models, or other assets into your scene.
The fundamental way to add a new 3D object is by using the GameObject menu at the top of the Unity editor. As mentioned in the reference, "You can go into 3d object you also have to do object." This means navigating to the section specifically designated for creating 3D objects, which is part of the broader options for adding different types of objects (like lights, audio, or effects) to your scene.
Steps to Add a Built-in 3D Primitive
Unity comes with several basic 3D shapes, known as primitives, that are useful for prototyping, placeholders, or simple geometry.
- Open your Unity Project: Launch the Unity editor and open the scene where you want to add the object.
- Access the GameObject Menu: Look at the top menu bar in the Unity editor. Click on GameObject.
- Select 3D Object: In the dropdown menu that appears, hover your mouse cursor over 3D Object. This will open a submenu listing various types of 3D objects you can create.
- Choose a Primitive: Click on the specific type of 3D object you want to add. Common primitives include:
- Cube
- Sphere
- Capsule
- Cylinder
- Plane
- Quad
- Terrain (more complex)
- Tree (more complex)
Once you click on a primitive type, the object will be created and automatically placed at the center of your current view or at a default position in the scene (usually 0,0,0).
Where to See Your New Object
After creation:
- Hierarchy Window: The new object will appear as an entry in the Hierarchy window, which lists all objects currently in your scene.
- Scene View: You will see the object visually represented in the Scene view, where you can manipulate its position, rotation, and scale.
Adding Custom 3D Models
While adding primitives is done through the GameObject menu, adding a custom 3D model (like a .fbx
, .obj
, .blend
file, etc.) usually involves importing the model file into your Unity project's Project window and then dragging it from the Project window into the Hierarchy or Scene view. This creates a new GameObject instance using your custom model asset.
Understanding how to add objects, whether primitives or custom models, is a fundamental step in building any Unity project, as it Populates your scene with the visual elements of your game or application.