选择Actor虽然简单,但却是关卡编辑过程中的重要组成部分。快速轻松地选择要使用的Actor的能力可提高工作效率并加快设计过程。
本页详细介绍了在虚幻引擎中选择Actor的不同方法。
简单选择
选择Actor的最基本方法是在视口中左键单击它们。点击某个Actor将取消选择任何当前选定的Actor,而是选择新的Actor。如果在单击新的(未选中的)Actor的同时按住Ctrl键,则新的Actor将添加到所选内容中。如果在单击所选Actor的同时按住Ctrl键,则该Actor将从所选内容中删除。
此方法适用于选择少量Actor或分布在关卡中的多个孤立Actor,但对于选择大量Actor来说可能既缓慢又乏味。

所选Actor在视口中高亮显示。在此示例中,表处于选中状态,如黄色突出显示和“变换”微件所示。
选择多个Actor时,可以将它们作为一个组进行变换,并且可以在“细节”面板中同时修改其属性。
当您选择了两个或更多Actor时,您可以将它们添加到组中,以便更轻松地重新选择它们或同时更改其属性。有关详细信息,请参阅分组执行组件页面。
在世界大纲中选择演员
世界大纲视图是虚幻编辑器中的一个面板,其中包含关卡中所有Actor的分层树视图。默认情况下,它位于虚幻编辑器窗口的右侧。
您可以在列表中选择和取消选择单个Actor,方法与在视口中相同。
此外,您可以通过以下方式选择多个Actor:
- 单击一个Actor,然后按住Shift键并单击另一个Actor以在列表中选择它们之间的所有Actor。
- 按住 Ctrl 键并单击多个 Actor 以选择所有 Actor。演员不必按顺序排列。
在世界大纲视图中选择任何Actor也会在视口中选择它,反之亦然。
选取框选择(单击并拖动)
选框选择是一种在视口中特定区域内选择或取消选择一组Actor的快速方法。这种类型的选择是通过单击并拖动鼠标来执行的,同时可以选择按住某个键或组合键。框中的所有Actor都将被选中或取消选择,具体取决于您在拖动鼠标时按住的键和鼠标按钮的组合。

虚幻编辑器中的选框选择。请注意,此视口位于正交自上而下的视图中,这使得使用单击和拖动来选择多个对象变得更加容易。
下表显示了选框选择的可能键盘组合。
| Mouse and Keyboard Shortcut | Action |
|---|---|
| Left-click and drag | Replaces the current selection with the Actors contained in the box. |
| Left-click and drag + Shift | Adds the Actors contained in the box to the current selection. |
| Left-click and drag + Ctrl + Alt | Removes the Actors in the box from the current selection. |
Using the Select Menu
The Select menu in the Unreal Editor's menu bar brings up some advanced selection techniques.
The options available in this submenu vary depending on the type of Actor you select. For example, if you have a Static Mesh selected, you will see different options than if you have a Blueprint selected.
The table below details some of the common options found within the Select submenu.
| Option | Description |
|---|---|
| Select All | Selects all Actors in the current Level. |
| Unselect All | Clears the current selection. |
| Invert Selection | Inverts the current selection (selects all Actors that are not currently selected, and deselects currently selected Actors). |
| Focus Selected | Centers the selected Actor inside the Level Viewport. |
| Select Immediate Children | Selects the immediate children of the currently selected Actor. For example, if your Actor hierarchy looks like this:
this operation only selects Actors 2, 3, and 6. |
| Select All Descendants | Selects all children of the currently selected Actor. |
| Select Relevant Lights | Selects all Light Actors that affect the currently selected Actor. |
| Select Matching (Selected Classes) | (For mesh Actors) Selects all Actors with the same Static Mesh and the same Actor class as the selected Actor. |
| Select Matching (All Classes) | (For mesh Actors) Selects all Actors with the same Static Mesh as the selected Actor. |
|
选择与指定类型(加法、减法或曲面)匹配的所有画笔Actor。 |
| 选择所有具有相同材料的内容 | 选择使用相同材质的所有Actor。 |
|
选择、取消选择或反转关卡中所有几何图形的当前选择。 |




