Protocol

MDLObjectContainerComponent

The general interface for classes that can act as containers in an object hierarchy.

Declaration

@protocol MDLObjectContainerComponent

Overview

Model I/O uses this interface to represent content loaded from an asset file. Various asset file formats define collections of information to describe their contents, such as a hierarchy of transforms to model the spatial relationships between models, lights, and meshes contained in an asset. When Model I/O imports such asset formats, the contents of the asset are objects implementing this protocol. You can also adopt this protocol in your own classes to describe your own custom asset formats—for example, one that includes collections of scripts and their triggers associated with the objects in a scene.

Topics

Working with Child Objects

objects

This object’s array of child objects.

Required.

- addObject:

Adds the specified object as a child of this object.

Required.

- removeObject:

Removes the specified object from this object’s array of children.

Required.

Instance Properties

count

Required.

Instance Methods

Relationships

Conforming Types

See Also

Extensible Asset Format Support

MDLComponent

The base protocol for extensible file format support in Model I/O.

MDLObjectContainer

A default implementation for handling object hierarchy relationships in a 3D asset.

MDLTransformComponent

The general interface for classes that manage local coordinate space transforms for 3D objects