@Maxxx wrote:
Code
_subterraneanTexture = Director::getInstance()->getTextureCache()->addImage(imageName);
Where imageName is just a std::string = "somerock.png"
somerock.png is in the Resources folder and is included in the project.
Run on Simulator - all good, _subterraneanTexture has a value
Run on Device - No Good, _subterraneanTexture is NULLI am sure it's going to be something obvious, but just can't figure it out right now!!
Save me the trouble of debugging it - what am I missing?!
*** SOLVED ***
It turns out that I had
Remove Text Metadata from PNG Files = Yes in project Build Settings.
This seemed to be causing it to fail to read the PNG on the device!
Posts: 1
Participants: 1