Contents

firstMaterial

The first material attached to the geometry.

Declaration

var firstMaterial: SCNMaterial? { get set }

Discussion

Calling this convenience method is equivalent to retrieving the first object from the geometry’s materials array. This property’s value is nil if the geometry has no attached materials.

See Also

Managing a Geometry’s Materials