PanelClippingConfig
public final class PanelClippingConfig
Defines the clipping configuration for all panels within the Scene.
This setting cannot be applied to an individual panel within the Scene, it must apply to all panels.
Summary
Public constructors |
|---|
PanelClippingConfig(boolean isDepthTestEnabled) |
Public methods |
|
|---|---|
final @NonNull PanelClippingConfig |
copy(boolean isDepthTestEnabled)Returns a copy of this configuration with the specified values updated. |
boolean |
|
int |
hashCode() |
final boolean |
When |
@NonNull String |
toString() |
Public constructors
Public methods
copy
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 | |
|---|---|
@NonNull PanelClippingConfig |
A new |
isDepthTestEnabled
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.