Initializer

init(mdlCamera:)

Creates a camera from the specified Model I/O camera object.

Declaration

convenience init(mdlCamera: MDLCamera)

Parameters

mdlCamera

A Model I/O camera object.

Return Value

A new camera object.

Discussion

The Model I/O framework provides universal support for import, export, description, and processing of several 3D asset file formats and related resources. (For details, see Model I/O.) The MDLCamera class is a generic description of a viewpoint on a scene, supporting a superset of the attributes described by the SCNCamera class.