Loads the texture with the specified filename from the specified bundle.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Model I/O
The name, including extension, of the image file to load as a texture.
The bundle the image file is located in, or
nilto use the main bundle.
A new texture object for the specified image file, or
nil if no such file exists.
Calling this method immediately loads image data from the specified file. To instead create a texture object referencing a file and defer loading image data, use the
This method does not cache the texture objects it creates; calling this method again with the same
name parameter as a previous call will load image data from the file again.