<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNCamera/automaticallyAdjustsZRange",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNCamera(py)automaticallyAdjustsZRange"
  },
  "title" : "automaticallyAdjustsZRange"
}
-->

# automaticallyAdjustsZRange

A Boolean value that determines whether the camera automatically adjusts its [`zNear`](/documentation/SceneKit/SCNCamera/zNear) and [`zFar`](/documentation/SceneKit/SCNCamera/zFar) depth limits.

```
var automaticallyAdjustsZRange: Bool { get set }
```

## Discussion

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>, specifying that the camera’s [`zNear`](/documentation/SceneKit/SCNCamera/zNear) and [`zFar`](/documentation/SceneKit/SCNCamera/zFar) properties control its depth limits. If you change this property’s value to <doc://com.apple.documentation/documentation/Swift/true>, SceneKit automatically adjusts the depth limits at render time to fit the bounding box of the scene. Changing the values of the [`zNear`](/documentation/SceneKit/SCNCamera/zNear) and [`zFar`](/documentation/SceneKit/SCNCamera/zFar) properties automatically resets this property’s value to <doc://com.apple.documentation/documentation/Swift/false>.

---

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)