# Enum.ZIndexBehavior

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

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

Used by [`LayerCollector.ZIndexBehavior`](https://rapi.sleaze.dev/classes/LayerCollector.md) to control how the [`GuiObject.ZIndex`](https://rapi.sleaze.dev/classes/GuiObject.md) property behaves for descendants.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Global` | 0 | The ZIndex property overrides the default value computed from the depth in the hierarchy. |
| `Sibling` | 1 | The ZIndex property controls the order in which the GuiObject renders relative to its siblings. |

## Used by

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

- [LayerCollector](https://rapi.sleaze.dev/classes/LayerCollector.md): property `ZIndexBehavior`
