Type Method

sceneWithMDLAsset:

Creates a scene from the specified Model I/O asset.

Declaration

+ (instancetype)sceneWithMDLAsset:(MDLAsset *)mdlAsset;

Parameters

mdlAsset

A Model I/O asset object.

Return Value

A new scene 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 MDLAsset class is a generic container for 3D objects. Importing a Model I/O asset creates a SceneKit scene containing nodes, geometries, materials, cameras, and lights corresponding to the objects stored in the asset.