Returns all objects contained in the asset of the specified class.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+Beta
- tvOS 10.0+
A Model I/O class (that is, a subclass of
MDLObject) representing a type of object stored in the asset. For example, pass the
MDLMesh class to find all 3D objects stored in the asset, or the
MDLLight class to find all light sources.
An array of objects of the specified type, or an empty array if no such objects exist.
This method searches the asset's entire child object hierarchy to find all objects of the specified type contained in the asset.
Working with Asset Content
var url: URL?
The URL from which the asset was loaded, if available.
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