---
title: "occluded(by:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/environmentblendingcomponent/blendingmode/occluded(by:)"
---

# occluded(by:)

The entity receives a depth-based occlusion treatment within the specified environment type.

## Declaration

```swift
static func occluded(by environmentType: EnvironmentBlendingComponent.EnvironmentType) -> EnvironmentBlendingComponent.BlendingMode
```
