Instance Property

automaticallyAdjustsZRange

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

Declaration

@property(nonatomic) BOOL automaticallyAdjustsZRange;

Discussion

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

zNear

The camera's near depth limit. Animatable.

zFar

The camera’s far depth limit. Animatable.