0
With cocos2d-x v3.7.1我僅在Android上使用setScale
時遇到問題(它適用於iOS)。SkyBox無法在Android上設置比例Cocos2d-x
auto textureCube = TextureCube::create("sky_left.JPG", "sky_right.JPG","sky_top.JPG", "sky_bottom.JPG","sky_front.JPG", "sky_back.JPG");
textureCube->retain();
//create a skybox
auto skyBox = Skybox::create();
skyBox->retain();
//set cube texture to the skybox
skyBox->setTexture(textureCube);
skyBox->setScale(1000.0f);
addChild(skyBox);
雖然我改變了setScale
的值,但它是完全一樣的看法。
然而在scene3DTest setScale
被使用和應用。有什麼不同?
感謝您的編輯,小提琴手。 –