Contents

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 .atlas extension.

Return Value

A new texture atlas object.

Discussion

If the texture atlas cannot be found, an exception is thrown.

See Also

Creating a Texture Atlas Programmatically