# Enum.SelectionBehavior

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/SelectionBehavior/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/SelectionBehavior

Customization options for gamepad selection when [`GuiBase2d.SelectionGroup`](https://rapi.sleaze.dev/classes/GuiBase2d.md) is true.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Escape` | 0 | Prioritizes GuiObjects within the same SelectionGroup but allows the selection to move to other outside GuiObjects if no suitable button is found. |
| `Stop` | 1 | Constrains gamepad selection to the SelectionGroup. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [GuiBase2d](https://rapi.sleaze.dev/classes/GuiBase2d.md): property `SelectionBehaviorDown`, `SelectionBehaviorLeft`, `SelectionBehaviorRight`, `SelectionBehaviorUp`
