Protocol

MDLNamed

The common interface for Model I/O objects that expose a human-readable name.

Declaration

@protocol MDLNamed

Overview

The name property defined by this protocol is adopted by many classes in Model I/O. You can use this property to assign descriptive names to objects such as meshes, materials, cameras, and scattering functions to better keep track of the objects in your app. When you load objects from or export objects to a file using the MDLAsset class, this property corresponds to the names and labels for objects that appear in popular 3D authoring tools.

Topics

Naming an Object

name

A descriptive name for the object.

Required.

See Also

3D Asset Basics

MDLAsset

An indexed container for 3D objects and associated information, such as transform hierarchies, meshes, cameras, and lights.

MDLObject

The base class for objects that are part of a 3D asset, including meshes, cameras, and lights.

MDLTransform

A description of the local coordinate space transformations for a 3D object.

MDLMesh

A container for vertex buffer data to be used in rendering a 3D object.

MDLSubmesh

A container for index buffer data and material information to be used in rendering all or part of a 3D object.

MDLSubmeshTopology

A description of how a submesh's index buffer data is arranged and how that arrangement should be used to produce the submesh's intended 3D shape.

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