init(named:)
Creates a texture atlas from data stored in the app bundle.
Declaration
convenience init(named name: String)Parameters
- name:
The name of the texture atlas, without the
.atlasextension.
Return Value
A new texture atlas object.
Discussion
If the texture atlas cannot be found, an exception is thrown.