<!--
{
  "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/cameraWithMDLCamera:",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNCamera(cm)cameraWithMDLCamera:"
  },
  "title" : "cameraWithMDLCamera:"
}
-->

# cameraWithMDLCamera:

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

```
+ (instancetype) cameraWithMDLCamera:(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 <doc://com.apple.documentation/documentation/ModelIO>.) The <doc://com.apple.documentation/documentation/ModelIO/MDLCamera> class is a generic description of a viewpoint on a scene, supporting a superset of the attributes described by the [`SCNCamera`](/documentation/SceneKit/SCNCamera) class.

---

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)