大约有 318 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)
...4657 赞同来自: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var WebGL = Laya.WebGL; var sp; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALI...
来源: Laya_社区 发布时间: 20170711
...uctor() { this.init(); } init() { Laya.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayShow); } delayShow() { let canvas = Laya.stage.drawToCan...
来源: Laya_社区 发布时间: 20230419
...模式效果是为什么? 游戏内容当中,检测横竖屏: Laya.stage.on(Laya.Event.RESIZE, this, this.onResize); /** 更改适配*/ public onResize() { var stageWidth = Laya.Browser.clientWidth; var stageHeight = Laya.Browser.clientHeight; if (stageWidth < stageHeight) { console.log...
来源: Laya_社区 发布时间: 20170920
flash2D没有使用stage3D,所以性能很差,如果通过layaFlash转换成JS后,还存在性能问题吗? flash2D没有使用stage3D,所以性能很差,如果通过laya转换成JS后,还存在性能问题吗? 2015-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20151102
laya2.0如何暂停游戏 Laya.stage.renderingEnabled=false Laya.timer.pause() Laya.timer.scale=0这些代码都不能停止组件的onUpdate 有什么能暂停onUpdate的方法吗? 2019-05-18 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20190518
showAll模式下无法居中对齐 设置Stage.SCALE_SHOWALL 模式后,无法集中对齐,已经设置 Laya.stage.alignH = Stage.ALIGN_CENTER;了。但是还是无法集中对齐 2017-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20171115
webgl模式下tiledmap出现黑线 在webgl模式下 设置Laya.stage.scaleMode = 'showall'; tiledmap会出现黑线 设置Laya.stage.scaleMode = 'noscale'; 则没有黑线 在canvas模式下不会出现黑线 附件 : --> 2016-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20160521
...如下代码: this._currentMouse.x = Math.round(e.touchPos.x / Laya.stage.clientScaleY); this._currentMouse.y = Math.round(e.touchPos.y / Laya.stage.clientScaleY); this.currRockerbox.globalToLocal(this._currentMouse, false); 改为如下方式: // this._currentMouse.x = Math.round(e.touchPos....
来源: Laya_社区 发布时间: 20231013
...er = new Animation(); this.aniFighter.loadAtlas(this.strAniConfPath); Laya.stage.addChild(this.aniFighter); this.aniFighter.interval = 100;//30;//设置播放间隔30毫秒 this.aniFighter.index = 1;//当前播放索引 this.aniFighter.play();//播放图集动画 this.aniFighter.loop = false; //获...
来源: Laya_社区 发布时间: 20181023
...D:Laya.Scene3D = Laya.loader.getRes(this.mSceneName) as Laya.Scene3D; Laya.stage.addChild(scene3D); 异常: TypeError: node._setParent is not a function preload.js:55 at Stage.__proto.addChild (file:///E:/H5Project/TestH5Project/TestFeiChe3D/bin/libs/laya.core.js:13235:9) 2018-10-31 添加评论 免...
来源: Laya_社区 发布时间: 20181031