Contents

subscript(_:)

Returns the top-level object at the specified index in the asset, using subscript syntax.

Declaration

subscript(index: Int) -> MDLObject? { get }

Parameters

  • 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.

See Also

Working with Asset Content