0
Ich brauche Textur mit 'trueName' in mein myImageViewOutlet.image zu laden. Das Ergebnis, das ich bekomme, ist der gesamte Atlas-Rendering. Mein Code ist wieMSage lädt ganzen SKTextureAtlas statt nur SKTexture
let myTextureAtlas = SKTextureAtlas.init(named: "myGameTextures")
// let texture = myTextureAtlas.textureNamed(trueName) // will render the entire atlas, instead of just the texture by trueName
let texture = myTextureAtlas.textureNamed(trueName+”bad name“) // will produce the placeholder image by sprite kit by itself just fine, but it's not the one I want obviously
let image = texture.CGImage()
let newImage = UIImage(CGImage: image, scale: 1.0, orientation: UIImageOrientation.Up)
// let newImage = UIImage(CGImage: image) // .. the straight forward way
myImageViewOutlet.image = newImage