Loads an atlas object’s textures into memory, calling a completion handler after the task completes.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
A block called after the texture atlas is loaded.
SpriteKit creates a background task that loads the texture data from the atlas object. Then, SpriteKit returns control to your game. After the texture atlas is loaded, your completion handler is called.
If you need to preload multiple texture atlas objects immediately, use the
preload method instead.