文档

Unity Engine


User Manual

Script Reference

Unity Engine


Create GameObjects from the Hierarchy window

Create GameObjects in the Scene view from the Hierarchy window.
阅读时间1 分钟最后更新于 23 天前

Use the Hierarchy window to add new GameObjects to a scene and duplicate existing GameObjects. To group GameObjects into parent-child hierarchies, refer to Manage GameObjects in the Hierarchy window.

Create a new GameObject

You can set where new GameObjects are created in a scene from the Scene view preferences by selecting an option for 3D Placement Mode.
By default, Unity creates new GameObjects in rename mode. To disable this behavior, open the More (⋮) menu in the Hierarchy window and deselect Rename New Objects.
To create a new GameObject in the Hierarchy window:
  1. Do one of the following:
    • Right-click empty space in the Hierarchy window to open the Hierarchy context menu.
    • Select the plus icon to open the GameObject menu.
  2. In the displayed menu, select a GameObject you want to create.
提示
Press Ctrl+Shift+N (macOS: Cmd+Shift+N) to create an empty GameObject.

Duplicate a GameObject

To duplicate a GameObject, right-click the target GameObject and select Duplicate.
You can also use the keyboard shortcut Ctrl+D (macOS: Cmd+D).

Additional resources