• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 712 项符合查询结果, 库内数据总量为 30,938 项。 (搜索耗时: 0.0048 秒)

531. laya.display.Animation [ 62%]

...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  frames : Array 当前动画的帧...

来源: Laya2.0_api 发布时间: 20190513

532. 关于适配有点疑惑 [ 62%]

...码测试几种适配模式,有一些困惑   我分别用noscale, fixedwidth, fixedheight进行试验, 代码如下:var rect; (function() { Laya.init(550, 400); // Laya.stage.scaleMode = Stage.SCALE_SHOWALL; // Laya.stage.scaleMode = "noscale"; // Laya.stage.scaleMode = "fixedwidth"; Laya.st...

来源: Laya_社区 发布时间: 20170206

533. 2.3微信截图分享问题 [ 62%]

...做分享。 var tempFilePath = canvas.toTempFilePathSync( { x: 0, y: 0, width: 100, height: 100, destWidth: 100, destHeight: 100, fileType: 'jpg', quality: 1.0 });   var canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getCanvas();   这是第二种写法。翻了几次...

来源: Laya_社区 发布时间: 20191010

534. Animation设置pivot导致动画模糊问题 [ 62%]

...明显变模糊,如: this.animation.pivot(this.animation.getBounds().width / 2,this.animation.getBounds().height / 2); 如果this.animation.getBounds().width / 2为非整数,动画就会变模糊,像下面带有小数点就会模糊 this.animation.pivot(100.5,100.5); 发现带小数点的...

来源: Laya_社区 发布时间: 20170207

535. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 62%]

... new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.playerHB.height / 2; this.playerHB.y = 500; this.playerHB.txtName.text = "搞个毛啊"; // this.playerVO.name; this.addChild(this.playerHB); } private aaa():void { this.playerHB.x += th...

来源: Laya_社区 发布时间: 20180102

536. 关于HitArea的问题 [ 62%]

...是全屏,给了引导容器 maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000") 重点来了,这里设置了可点击区域,范围也是全屏,给了舞台 hitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000") 最后,在背景的click事...

来源: Laya_社区 发布时间: 20180530

537. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 61%]

...属性介绍 (图5) 属性 功能 dragarea 拖动区域(格式:xywidth,height),默认值为"0,0,0,0"。 ismodal 是否是模式窗口,默认为不开启状态。 isshoweffect 是否显示弹出效果,默认为开启状态。 ispopupcenter 指定对话框是否居中弹出,默...

来源: Laya3.0_文档 发布时间: 20230303

538. 请问Laya如果获取Laya.Event.CLICK时间的点击坐标? [ 61%]

...ickRect = new Laya.Sprite(); clickRect.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height-100 ); clickRect.pos( 0, 0 ); clickRect.size( Laya.stage.width, Laya.stage.height-100 ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Event.CLICK, this, changeVxVy ); } function changeVxVy( e...

来源: Laya_社区 发布时间: 20180201

539. SCALE_FIXED_WIDTH适配屏幕的问题 [ 61%]

SCALE_FIXED_WIDTH适配屏幕的问题 主要设置屏幕横屏与竖屏切换时,有少部分andriod机器有比较大的概率出现半屏的情况。请问下是引擎不兼容呢,还是代码写的不完善 问题重现方法:先卸载微信后再安装最新版本的微信,一定要卸...

来源: Laya_社区 发布时间: 20181213

540. tiledmap有时尺寸不正确 [ 61%]

...._mTiledMap.createMap(conf.fileName + ".json", new Rectangle(0, 0, Browser.width, Browser.height), Handler.create(this, this.onCompleteHandler)); } /** * 销毁当前地图 */ public destroy():void{ if (this._mTiledMap) this._mTiledMap.destroy(); if (this._mLevelConf) this._mLevelConf = null; this._...

来源: Laya_社区 发布时间: 20180529