Instance Method

removeMaterialAtIndex:

Removes a material attached to the geometry.

Declaration

- (void)removeMaterialAtIndex:(NSUInteger)index;

Parameters

index

The index of the attached material to be removed.

See Also

Managing a Geometry’s Materials

materials

An array of SCNMaterial objects that determine the geometry’s appearance when rendered.

firstMaterial

The first material attached to the geometry.

- materialWithName:

Returns the first material attached to the geometry with the specified name.

- insertMaterial:atIndex:

Attaches a material to the geometry at the specified index.

- replaceMaterialAtIndex:withMaterial:

Replaces a material attached to the geometry with another.