mac creator 2.0.1 版本
camera.rect 这个参数取值范围是多少
文档上说是0~1
/** !#en
Four values (0-1) that indicate where on the screen this camera view will be drawn.
!#zh
决定摄像机绘制在屏幕上哪个位置,值为 0-1。 */
rect: Rect;
但是 不管传0-1 还是整数 都报错
报错如下
Simulator: [ERROR] (/Users/nantas/fireball-x/cocos2d-x-lite_21/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp, 4848): ccViewport((GLint)p[1], (GLint)p[2], (GLsizei)p[3], (GLsizei)p[4]); GL error 0x501: GL_INVALID_VALUE
at HTMLElement.print-simulator-log (/Volumes/Macintosh_HD3/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/scene/panel/messages/scene.js:1:1653)
at Object.e._dispatch (/Volumes/Macintosh_HD3/Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/renderer/panel.js:1:1941)
at EventEmitter.o.on.s (/Volumes/Macintosh_HD3/Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/renderer/ipc.js:1:2917)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:204:7)