<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PortalComponent/clippingPlane-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15PortalComponentV13clippingPlaneAC08ClippingF0VSgvp"
  },
  "title" : "clippingPlane"
}
-->

# clippingPlane

The clipping plane of the portal, in the entity’s local coordinates.

```
var clippingPlane: PortalComponent.ClippingPlane? { get set }
```

## Discussion

When you set this property to a non-`nil` value, the portal clips meshes inside the portal
world that are in front of the clipping plane.

This property is a convenience that maps onto the more general [`clippingMode`](/documentation/RealityKit/PortalComponent/clippingMode-swift.property).
Reading it returns a value only when [`clippingMode`](/documentation/RealityKit/PortalComponent/clippingMode-swift.property) is
[`PortalComponent.ClippingMode.plane(_:)`](/documentation/RealityKit/PortalComponent/ClippingMode-swift.enum/plane(_:)); for [`PortalComponent.ClippingMode.disabled`](/documentation/RealityKit/PortalComponent/ClippingMode-swift.enum/disabled)
or [`PortalComponent.ClippingMode.volume(_:)`](/documentation/RealityKit/PortalComponent/ClippingMode-swift.enum/volume(_:)), it returns `nil`.

For new code, prefer [`clippingMode`](/documentation/RealityKit/PortalComponent/clippingMode-swift.property) directly. It supports
[`PortalComponent.ClippingMode.volume(_:)`](/documentation/RealityKit/PortalComponent/ClippingMode-swift.enum/volume(_:)) for box-shaped clipping boundaries and pairs naturally
with [`crossingMode`](/documentation/RealityKit/PortalComponent/crossingMode-swift.property).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)