object(at:)
Returns the top-level object at the specified index in the asset.
Declaration
func object(at index: Int) -> MDLObjectParameters
- index:
An index in the asset’s list of top-level objects; between zero and the value of the Count property.
Return Value
The object at the specified index.
Discussion
An asset contains one or more top-level objects (instances of the MDLObject class or one of its subclasses, such as MDLMesh), each of which may contain a hierarchy of child objects.