# Enum.HighlightDepthMode

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

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

Controls how the [`Highlight`](https://rapi.sleaze.dev/classes/Highlight.md) effect displays with respect to other objects in the world.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `AlwaysOnTop` | 0 | Allows the [`Highlight`](https://rapi.sleaze.dev/classes/Highlight.md) to display regardless if there are objects between the camera and the highlighted object. This means the viewer is always able to see the highlight regardless of what is between the highlighted object and the camera. |
| `Occluded` | 1 | Hides the [`Highlight`](https://rapi.sleaze.dev/classes/Highlight.md) if there are objects between the camera and the highlighted object. This means the viewer is only able to see the object if there are no obstructing objects between the highlighted object and the camera's view. |

## Used by

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

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