Domanda

Xcode is reporting the following warning: "SpriteKit Texture Atlas Generator Warning Splitting 'images.atlas' into 2 texture atlases due to input texture dimensions." Although I will modified my images in the future to avoid SpriteKit from generating this warning, I would like to temporarily suppress this warning using some pragma directives. Does anyone know the warning flag to use to suppress this warning using code like the following?

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// my code
#pragma clang diagnostic pop

Or, can this specific warning be suppressed in the build settings?

È stato utile?

Soluzione 2

You won't be able to achieve this with pragmas. The texture atlas tool is a separate build step that doesn't involve the compiler.

You can either make the change to reduce your atlas size right now (good idea if you want to do that anyway, so why wait?) or ignore the warning. After all it's reminding you to do what you still need to do.

Altri suggerimenti

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top