TurnBasedStrategyCourse/Library/PackageCache/com.unity.probuilder@5.1.0/Documentation~/Selection_Rect_Intersect.md

21 lines
1.3 KiB
Markdown

# ![Selection Rect icon](images/icons/Selection_Rect_Intersect.png) Rect
Use the __Rect__ action to choose whether drag selection should only select elements completely inside the drag rectangle, or also elements that are partially inside the the drag rectangle.
![Same drag action has different effect depending on Rect setting](images/DragRect_Example.png)
This action is available only in the [edge and face modes](modes.md).
> **Tip**: You can also launch this action from the ProBuilder menu (**Tools** > **ProBuilder** > **Interaction** > **Toggle Drag Rect Mode**).
## Visual cues
Depending whether you are in [text mode or icon mode](toolbar.md#buttonmode), the button displays the following to indicate what state the action is in:
| **Icon mode:** | **Text mode:** | **Description:** |
| :------------------------------------------------------ | ------------------- | ------------------------------------------------------------ |
| ![Complete](images/icons/Selection_Rect_Complete.png) | **Rect: Complete** | Only select elements that are contained entirely within the drag rectangle. |
| ![Intersect](images/icons/Selection_Rect_Intersect.png) | **Rect: Intersect** | Select elements that are entirely or partially inside the drag-rectangle. |