大约有 245 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)
...函数重置ui。注释掉就好了。自问自答,希望有用。 Laya.stage.on(Laya.Event.RESIZE, this, this.resize); static resize(): void { // let w = this.config.width; // let h = this.config.height; // let screen_wh_scale = Laya.Browser.clientWidth / Laya.Browser.clientHeight; // if (L...
来源: Laya_社区 发布时间: 20200520
...变这样了: 所用引擎:1.7.4beta 屏幕适配代码: Laya.stage.scaleMode = "fixedwidth"; Laya.stage.alignH = "center"; Laya.stage.alignV = "top"; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; 这是升级衍生的bug吧? 附件 : --> 2017-05-05 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170505
flash2D没有使用stage3D,所以性能很差,如果通过layaFlash转换成JS后,还存在性能问题吗? flash2D没有使用stage3D,所以性能很差,如果通过laya转换成JS后,还存在性能问题吗? 2015-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20151102
...上的对齐参照物 let reference: Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(reference); reference.pos(0, 0); reference.size(Laya.stage.width, Laya.stage.height); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); let tipElmt = Laya.Browser.createElement("i...
来源: Laya_社区 发布时间: 20180802
...phicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani); 上面pivot和pos都是什么意思?官方API为什么找到说明? 2018-05-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180509
...么使用 google/blockly //初始化引擎 //Laya.init(960, 660); //Laya.stage.bgColor = "#ffffff"; var demoWorkspace:Object = Browser.window.Blockly.inject('blocklyDiv',{toolbox: Browser.document.getElementById('toolbox')}) 不创建laya舞台是直接能玩,但是不知道怎么把Blockly 生成...
来源: Laya_社区 发布时间: 20180331
....app/Contents/Resources/app/out/vs/layaEditor/h5/laya.js:8965:16) at Stage.__proto.render (file:///Applications/LayaAirIDE.app/Contents/Resources/app/out/vs/layaEditor/h5/laya.js:59716:16) at Stage.__proto.render (file:///Applications/LayaAirIDE.app/Contents/Resources/app/out/vs/layaEdit...
来源: Laya_社区 发布时间: 20191113
...maolw3 • 2017-10-17 12:10 Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Laya.stage.scaleMode = "fixedauto"; 舞台初始化需要改成这也吗 Monica • 2017-10-17 18:06 @maomaolw3:初始化引擎这块没错... Monica • 2017-10-17 18:07 @maomao...
来源: Laya_社区 发布时间: 20171017
...top,bottom,left,right这些都没用 如标题,我设置了fixedheight,stage设计分辨率1136x640,我在iphoneX分辨率下看,高度不变,宽度放大,stage是1386,640(从左边到最右黑色部分,我鼠标点击打印出了stage上的mousex,mousey,参考截图)。imgae...
来源: Laya_社区 发布时间: 20190802
... (laya.core.js:22293) at Timer._update (laya.core.js:22144) at Stage._updateTimers (laya.core.js:17717) at Stage.render (laya.core.js:17679)(env: Windows,mg,1.05.2110152; lib: 2.20.2) 附件 : --> 2021-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20211207