Actor是可以放置在关卡中的任何对象,从创建游戏环境的静态网格体到声音、摄像机、玩家角色等。本页将向您展示如何将这些Actor放入关卡中,以便将世界变为现实。
将Actor放入关卡会创建Actor所基于的对象的实例。
将Actor添加到关卡也会将其添加到世界大纲视图中,默认情况下,世界大纲视图位于虚幻编辑器的右上角。有关详细信息,请参阅世界大纲指南文档。
必需的设置
在按照本页所述的工作流程进行操作之前,必须创建一个新项目并在虚幻编辑器中打开它。此页面上的示例将使用
,但您可以选择任何您喜欢的模板。
使用“放置参与者”面板
本节将向您展示如何从“放置Actor”面板中放置Actor。要打开此面板,请从主菜单中转到“窗口>放置Actor”。“放置Actor”面板将在虚幻编辑器窗口的左侧打开。
让我们继续将一个简单的立方体放入您的关卡中。在“放置Actor”面板中,左键单击立方体Actor,然后将其拖到关卡中,如下面的GIF所示。
您可以为“放置Actor”面板中的任何Actor执行此操作。
Place Actors Panel Interface
The Place Actors panel consists of three major areas:
- Search
- Filters
- Asset View
1. Search
Use the Search bar to find any Actor by name.
2. Filters
Use these tabs to quickly switch between Actor categories.
| Tab | Contents |
|---|---|
| Recently Placed | Rolling history of up to the last 20 types of Actors you placed in your Level. This history is project-specific. |
| Basic | Basic Actors such as planes, Pawns, and trigger volumes. Also contains empty Actors and Characters. |
| Lights | Different types of lights you can place into your Level. |
| Shapes | Simple primitives (cube, sphere, cylinder, cone, and plane). |
| Cinematic | A cinematic camera and related Actors that you can use to simulate real-world camera movement. |
| Visual Effects | Volumes that visually affect part of all of your Level in some way, such as fog, post-processing, and reflections. |
| Geometry | Geometry brushes you can use to quickly block out or prototype a level.
Use the Add or Subtract radio buttons to change whether the brush adds geometry to the Level or removes existing geometry. |
| Volumes | All placeable Volume types. |
| All Classes | All placeable Actors. |
3. Asset View
This view shows all Assets that correspond to the search or filters you selected.
An Asset is any piece of content within an Unreal Engine project. All Actors are Assets.
Placing Actors Using the Context Menu
This section will show you how to place Actors through a context menu. A context menu is any menu that opens when you right-click inside Unreal Engine.
You will select the Actor you want to place from the Content Browser. The fastest way to open an instance of the Content Browser is to click the Content Drawer button in the lower-left corner of the Unreal Editor window. If you want this instance to persist when it loses focus (when you click away from it), click the Dock in Editor button in its upper-right corner.
To place an Actor from the Content Browser, follow the steps below:
- In the Content Browser, find the Asset you want to place.
- Left-click the Asset to select it.
- With the Asset still selected, right-click anywhere in the Level Viewport to open the context menu.
- Click the Asset under the Place Actor section.
Placing an Actor from the Content Browser into a Level using the context menu. Click the image for full size.
After selecting the Asset from the context menu, you will see it appear inside your Level at the coordinates where you right-clicked.
You can also use the context menu to quickly add different types of Assets to your level, even when you have a specific Asset selected in the Content Browser. To see the types of Assets you can add, right-click anywhere in your Level Viewport, then hover over the Place Actor section. Click any Actor you see in this section to place it.
Replacing Actors
You can also use the context menu to replace one or more Actors in the Level Viewport with an Asset you selected in the Content Browser. This can be useful if you want to swap multiple Assets at once.
To replace one or more Actors, follow the steps below:
- In the Content Browser, select the Actor you want to replace another Actor with.
- Right-click the Actor or Actors in the Level Viewport to open the context menu.
- Click Replace Selected Actors with.
You can also use this method to replace the selected Actor with any Actor that is also available from the Place Actors panel.
Placing Actors Using Drag and Drop
You can add Actors to your Level from the Content Browser by using drag and drop. To do this, follow the steps below:
- In the Content Browser, find the Asset you want to place.
- Left-click the Asset, then drag it into the Level Viewport and drop it at the location where you want to place it.
When you drag and drop an Asset from the Content Browser, the following types of Actors are created for the associated type of Asset:
- 蓝图:放置蓝图的实例。
- 骨架网格体:放置一个骨架网格体Actor。
- 静态网格体:放置一个静态网格体。
- 声音提示:放置环境声音。
- 声波:放置环境声。
从类查看器中放置演员
放置Actor的更高级方法是使用类查看器,这是虚幻编辑器使用的所有类的分层列表。
若要从类查看器放置 Actor,请执行以下步骤:
- 打开类查看器。从主菜单中,转到工具>类查看器。
任何可以放置在关卡中的Actor都会在此窗口中被染成蓝色。
- 选择要放置的资源,然后将其拖到关卡视口中。
有关详细信息,请参阅“类查看器”页。









