Instance Property


A Boolean value that determines whether the camera automatically adjusts its zNear and zFar depth limits.


@property(nonatomic) BOOL automaticallyAdjustsZRange;


The default value of this property is NO, specifying that the camera’s zNear and zFar properties control its depth limits. If you change this property’s value to YES, SceneKit automatically adjusts the depth limits at render time to fit the bounding box of the scene. Changing the values of the zNear and zFar properties automatically resets this property’s value to NO.

See Also

Adjusting Camera Perspective


The camera's near depth limit. Animatable.


The camera’s far depth limit. Animatable.