I am using the following code to create a sprite 3d object on a layer
Layer *gameOverLayer =
LayerColor::create(Color4B(120,120,120,120), this->getContentSize().width,this->getContentSize().height);
this->addChild(gameOverLayer);
gameOverLayer->setGlobalZOrder(-10);
Sprite3D *zombieSprite = Sprite3D::create("res/Clipanim/Card_Shuffle(initial).c3b");
zombieSprite->setScale(1.0f);
zombieSprite->setRotation3D(Vec3(0,180,180));
gameOverLayer->addChild(zombieSprite);
zombieSprite->setPosition3D( Vec3(size.width/2,size.height * 0.275f,50) );
zombieSprite->setGlobalZOrder(10);
auto zombieWalkAnimation = Animation3D::create("res/Clipanim/Card_Shuffle(initial).c3b","Take 001");
auto zombieWalkAnimate = Animate3D::create(zombieWalkAnimation);
auto repeatAction = RepeatForever::create(zombieWalkAnimate);
zombieSprite->runAction(repeatAction);
it works fine when I create a sample project, in which both the layer and 3d animation created using code.
But when i create a layer using Cocos studio and try same code the 3d animation is placed below the layer.
can anyone help me with the issue