Returns a Boolean value that indicates whether the MDLAsset
class can write asset data as a file with the specified format extension.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Model I/O
Declaration
Parameters
extension
The filename extension identifying an asset file format.
Return Value
true
if the MDLAsset
class can export asset data in the format with the specified extension; otherwise, false
.
Discussion
If this method returns true
, you can use the export(to:)
method to write an asset to a file using the format identified by the specified extension.
The set of supported formats includes Wavefront Object (.obj
) and Standard Tessellation Language (.stl
). Additional formats may be supported as well.