# PanelClippingConfig

Artifact: [androidx.xr.scenecore:scenecore](https://developer.android.com/jetpack/androidx/releases/xr-scenecore) [View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/PanelClippingConfig.kt+class:androidx.xr.scenecore.PanelClippingConfig) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
public final class PanelClippingConfig
```

<br />

*** ** * ** ***

Defines the clipping configuration for all panels within the `https://developer.android.com/reference/androidx/xr/scenecore/Scene`.

This setting cannot be applied to an individual panel within the Scene, it must apply to all panels.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/xr/scenecore/PanelClippingConfig#PanelClippingConfig(kotlin.Boolean)(boolean isDepthTestEnabled)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/PanelClippingConfig` | `https://developer.android.com/reference/androidx/xr/scenecore/PanelClippingConfig#copy(kotlin.Boolean)(boolean isDepthTestEnabled)` Returns a copy of this configuration with the specified values updated. |
| `boolean` | `https://developer.android.com/reference/androidx/xr/scenecore/PanelClippingConfig#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/xr/scenecore/PanelClippingConfig#hashCode()()` |
| `final boolean` | `https://developer.android.com/reference/androidx/xr/scenecore/PanelClippingConfig#isDepthTestEnabled()()` When `true`, enables depth testing for all panels in the Scene, allowing them to be drawn in an intuitive, distance-based way with respect to other objects in the scene, including other panels and the environment. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/PanelClippingConfig#toString()()` |

## Public constructors

### PanelClippingConfig

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
public PanelClippingConfig(boolean isDepthTestEnabled)
```

## Public methods

### copy

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
public final @NonNull PanelClippingConfig copy(boolean isDepthTestEnabled)
```

Returns a copy of this configuration with the specified values updated.

| Parameters |
|---|---|
| `boolean isDepthTestEnabled` | The new depth test enabled state. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/PanelClippingConfig` | A new `https://developer.android.com/reference/androidx/xr/scenecore/PanelClippingConfig` instance with the updated values. |

### equals

```
public boolean equals(Object other)
```

### hashCode

```
public int hashCode()
```

### isDepthTestEnabled

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
public final boolean isDepthTestEnabled()
```

When `true`, enables depth testing for all panels in the Scene, allowing them to be drawn in an intuitive, distance-based way with respect to other objects in the scene, including other panels and the environment. When `false`, all panels are rendered on top of any other non-depth-tested 3D content that were drawn **before** them, regardless of their actual distance (i.e., depth) from the camera. The `false` setting can be used to ensure panels are drawn on top of the virtual environment, i.e., they do not clip into the environment.

### toString

```
public @NonNull String toString()
```