Instance Method

removeObject:

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

Declaration

- (void)removeObject:(MDLObject *)object;

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

- objectAtIndex:

Returns the top-level object at the specified index in the asset.

- objectAtIndexedSubscript:

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

count

The number of top-level objects in the asset.

- childObjectsOfClass:

Returns all objects contained in the asset of the specified class.

- addObject:

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

boundingBox

The minimum region entirely enclosing the asset’s contents.

- boundingBoxAtTime:

Returns the minimum region entirely enclosing the asset’s contents at the specified time sample.

URL

The URL from which the asset was loaded, if available.

bufferAllocator

An object responsible for allocating mesh vertex data loaded from the asset.

vertexDescriptor

The description of the vertex data format to be used for loading mesh data from the asset.

masters

An array of objects that can be reused in the asset's object hierarchy through instancing.