A component that manages this object’s collection of children.
- iOS 9.0+
- macOS 10.11+
- tvOS 9.0+
- Model I/O
Many asset formats describe a hierarchy of transforms that model the spatial relationships between meshes, lights, and cameras in the asset. In such formats, hierarchic transforms are
MDLObject instances whose
children property references the objects affected by the transform, and those objects can be other
MDLObject instances with children of their own.
This property’s value is a component object—either a
MDLObject instance, or a custom class that adopts the
MDLObject protocol. By default, an object has no container component (that is, this property’s value is
nil). To add a container component, either write to this property an instance of a container component class or call the
add method to create a default
MDLObject instance and add a child object to that container.
Container components support fast enumeration and subscripting, so you can treat an object’s children property similarly to an array.