Incorporating a Texture Atlas in Your Project

Incorporate your Sprite Kit art resources into a texture atlas to improve your app’s performance.

bullet
To add a texture atlas to your project
  1. Place all of your app’s art into a single folder.

  2. Name the folder name.atlas.

  3. Choose File > Add Files to AppName.

  4. In the Editor area, select your project and click Build Settings.

    Art/Build_settings_2x.pngArt/Build_settings_2x.png
  5. Type Sprite in the search field, and press Return.

  6. Set Enable Texture Atlas Generation to Yes.

    Art/EnableSetting_2x.png

After adding a texture atlas to your project, you continue to access your images in the same way. No changes in your code are required. The compiler knows how to access your images through a property list generated during build time.