用studio1.0.0.1 编辑的scrollview在2dx3.0,ios模拟器和iphone真机环境下,不能自动裁剪,android的还没测试过。
以下截图是相关设置。
用studio1.0.0.1 编辑的scrollview在2dx3.0,ios模拟器和iphone真机环境下,不能自动裁剪,android的还没测试过。
以下截图是相关设置。
勾选模拟裁切,就会有裁切效果了
特性 里的 模拟裁切 点上
测试下来在ios上即使选上了 模拟裁剪 也不能出裁剪效果,在android和win32下都是好的。
您好,在部分安卓机型以及ios系统需要做如下修改才能正常渲染
for iOS:
in AppController replace the gl-view creation with:
EAGLView *__glView =
pixelFormat: kEAGLColorFormatRGBA8
depthFormat: GL_DEPTH24_STENCIL8_OES
preserveBackbuffer: NO
sharegroup: nil
multiSampling: NO
numberOfSamples: 0];
for Android:
in game activity:
public Cocos2dxGLSurfaceView onCreateView() {
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
return glSurfaceView;
}
这样一改确实好了,多谢了!
