大约有 135 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0042 秒)
...片到相册或截屏 */ var htmlCanvas:HTMLCanvas= box.drawToCanvas(1280,720,0,0);//其中box是一个容器 var canvas:Object = htmlCanvas.getCanvas(); var imagePath:String;// = canvas.toTempFilePathSync(); canvas.toTempFilePath({ x: 0, y: 0, width: 1280, height: 720, destWidth: 1280, destHeight: ...
来源: Laya_社区 发布时间: 20190515
...owser.onMiniGame) { try { var htmlCanvas:HTMLCanvas= box.drawToCanvas(1280,720,0,0); var canvas:Object = htmlCanvas.getCanvas(); var imagePath:String;// = canvas.toTempFilePathSync(); canvas.toTempFilePath({ x: 0, y: 0, width: 1280, height: 720, destWidth: 1280, destHeight: 720, success:function(res...
来源: Laya_社区 发布时间: 20180830
... } console.log("设置横屏" + isFirst); if (isFirst) Laya3D.init(1280, 720, true); else Laya.stage.width = 1280; Laya.stage.height = 720; //Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; } ShuPing(isFirst: boolean): void { if (Laya.stage...
来源: Laya_社区 发布时间: 20180517
...: 2 人 liuhang123 • 2017-09-09 22:01 为什么我手机尺寸明明是720*1280,但Browser打印出来却是720*1120
来源: Laya_社区 发布时间: 20170909
...aded @ code.js:13291 (anonymous) @ code.js:13283 __proto.runWith @ code.js:720 __proto.event @ code.js:494 __proto.onError @ code.js:12784 __proto.runWith @ code.js:720 __proto.event @ code.js:494 __proto.error @ code.js:12548 __proto._onError @ code.js:12523 http.onerror @ code.js:12485 _triggerEve...
来源: Laya_社区 发布时间: 20180531
... if (window["Laya3D"]){ Laya3D.init(720, 1280); } else{ Laya.init(720, 1280, Laya["WebGL"]); } Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel...
来源: Laya_社区 发布时间: 20190429
...中为旋转80、45、0角度时的现象 问题补充: Laya.init(720, 1280);这样就正常了。 Laya.init(720, 1280, laya.webgl.WebGL);这样就出现这个问题,应该在webgl模式下有问题。 附件 : --> Particles.zip 2018-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180505
...haouXie 赞同来自: var bg = new Laya.Sprite(); bg.loadImage("res/bg-480x720.jpg"); Laya.stage.on(Laya.Event.RESIZE,this,onResize); function onResize() { var scale,scaleX,scaleY; scaleX = Browser.clientWidth/480; scaleY = Browser.clientHeight/720; scale = scaleX > sca...
来源: Laya_社区 发布时间: 20161118
...折叠? 0 个回复被折叠 要回复问题请先登录 发起人 136*****720 相关问题 2.0一不小心删了bin目录下的某个场景json文件。。竟然无法自动生成了? unity导出粒子文件问题 加载到舞台的3D模型不显示贴图 从unity导出的场景透贴和模型烘...
来源: Laya_社区 发布时间: 20190412
... / ratioW ) ; } if( width < 640 ) { width = 640 ; } else if( width > 720 ) { width = 720 ; } if( height > 1280 ) { height = 1280 ; } else if( height < 960 ) { height = 960 ; } Global.GAME_WIDTH = width; Global.GAME_HEIGHT = height; Config.atlasEnable = true; Config.isAlpha = true; Laya.i...
来源: Laya_社区 发布时间: 20170828