Contents

add(_:)

Adds the specified object to the asset’s list of top-level objects.

Declaration

func add(_ object: MDLObject)

Parameters

  • object:

    The object to add to the asset.

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.

Calling this method has no effect if the object is already in the asset’s list of top-level objects.

See Also

Working with Asset Content