Returns the first material attached to the geometry with the specified name.
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 3.0+
The name of the material to be retrieved.
A material object with the specified name.
You can use the
name property of each
SCNMaterial object to make managing your scene graph easier. Materials loaded from a scene file may have names assigned by an artist using a 3D authoring tool.
If a geometry has multiple materials attached with the same name, this method returns the first according to the order of the
Managing a Geometry’s Materials
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software