Instance Property

anchorPoint

The point in the view’s frame that corresponds to the scene’s origin.

Declaration

@property(nonatomic) CGPoint anchorPoint;

Discussion

When a scene is presented and a camera node has not been specified, the size and anchorPoint properties determine which part of the scene’s coordinate space is visible in the view.

You specify the value using the unit coordinate space. The default value is (0,0), which corresponds to the lower-left corner of the view’s frame rectangle.

See Also

Configuring the Viewport

Positioning a Scene's Origin Within its View

Try the different ways to configure the scene's origin inside its view.

camera

The camera node in the scene that determines what part of the scene’s coordinate space is visible in the view.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software