我用cocostudio编辑了一套ui,Panel层没有设置图片。透明的为255,导出来在win32和ios平台是没问题的。但是在安卓平台上Panel显示的是绿色,并且不透明。
就算了我把透明度设置成0,Panel上面的图片都透明掉了,但是背景依旧是绿色。请问有什么办法么?求解答。叩谢。
不是cocostudio的问题,是我加了一层滑动层(PageView)导致的,哎,蛋疼。话说PageView怎么办咧?
可否把2d-x版本提供下?
cocos2d3.2版本的。
问题解决了,好像是没有开启OpenGL深度缓存,在AppActivity.java里面加一段代码就可以了。分享一下,代码附上
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
public class AppActivity extends Cocos2dxActivity {
public Cocos2dxGLSurfaceView onCreateView() {
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
glSurfaceView.setEGLConfigChooser(8, 8, 8, 0, 16, 8);
return glSurfaceView;
}
}