Contents

remove(_:)

Removes the specified object from the asset’s list of top-level objects.

Declaration

func remove(_ object: MDLObject)

Parameters

  • object:

    The object to remove from 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 not in the asset’s list of top-level objects.

See Also

Working with Asset Content