Instance Property

textureNames

The names of the texture images stored in the atlas.

Declaration

var textureNames: [String] { get }

Discussion

The property holds an array of NSString objects. Each string is the name of a texture stored in the atlas. The count of the array is the number of textures stored in the atlas.

If the atlas is not currently loaded into memory, this method forces it to be loaded from the app bundle. Your game blocks until the atlas is loaded.

See Also