One Logo Pool Ball
SpriteKit · IOS API REFERENCE

SKTextureAtlas

class · SDK 27.1

class SKTextureAtlas

Members (8)

init

init

TypeScript
static initNamed(name: string): SKTextureAtlas
Swift declaration
convenience init(named name: String)
init · iOS 8.0+

init

TypeScript
static initDictionary(properties: Record<string, unknown>): SKTextureAtlas
Swift declaration
convenience init(dictionary properties: [String : Any])
static

preloadTextureAtlases

TypeScript
static preloadTextureAtlases(textureAtlases: Array<SKTextureAtlas>, completionHandler: (() => void)): void
Swift declaration
class func preloadTextureAtlases(_ textureAtlases: [SKTextureAtlas]) async
static · iOS 9.0+

preloadTextureAtlasesNamed

TypeScript
static preloadTextureAtlasesNamed(atlasNames: Array<string>, completionHandler: ((arg0: (NativeError) | null, arg1: Array<SKTextureAtlas>) => void)): void
Swift declaration
class func preloadTextureAtlasesNamed(_ atlasNames: [String]) async throws -> [SKTextureAtlas]
method

preload

TypeScript
preload(completionHandler: (() => void)): void
Swift declaration
func preload() async
method

textureNamed

TypeScript
textureNamed(name: string): SKTexture
Swift declaration
func textureNamed(_ name: String) -> SKTexture
get

textureNames

TypeScript
get textureNames(): Array<string>
Swift declaration
var textureNames: [String] { get }
get

customPlaygroundQuickLook

TypeScript
get customPlaygroundQuickLook(): SDKHandle
Swift declaration
var customPlaygroundQuickLook: PlaygroundQuickLook { get }

A custom playground Quick Look for this instance. If this type has value semantics, the `PlaygroundQuickLook` instance should be unaffected by subsequent mutations.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

SKTextureAtlas.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All SpriteKit types →