Name of the image or atlas stored in assets catalog.
Instance Method
retrieveTexture(atlasName:)
Retrieves a single cached texture for a more performant render.
Declaration
@MainActor func retrieveTexture(atlasName: String) -> SKTexture
Parameters
atlasName-
Return Value
SKTexture
Notes:
<#Notes if any#>
Example
let texture: SKTexture = retrieveTexture(atlasName: "enemy_idle")