childObjects(of:)
Returns all objects contained in the asset of the specified class.
Declaration
func childObjects(of objectClass: AnyClass) -> [MDLObject]Parameters
Return Value
An array of objects of the specified type, or an empty array if no such objects exist.
Discussion
This method searches the asset’s entire child object hierarchy to find all objects of the specified type contained in the asset.