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

大约有 667 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)

601. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 54%]

...on login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo",stageWidth*0.8,stageHeight*0.6,stage...

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

602. 微信小游戏截图 [ 54%]

...vas.toTempFilePathSync(); canvas.toTempFilePath({ x: 0, y: 0, width: 1280, height: 720, destWidth: 1280, destHeight: 720, success:function(res:Object):void{ imagePath = res.tempFilePath;//这个就是截屏的图片地址,可以将图片生成到相册,也可以使用这个地址用来里显示 ...

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

603. 如何实现3d遮罩效果? [ 54%]

....pos(Laya.stage.width / 2 - btn.width * Browser.pixelRatio / 2, Laya.stage.height - 50 * Browser.pixelRatio); btn.on(Event.CLICK, _this, onclick); Laya.stage.addChild(btn); Laya.stage.on(Event.RESIZE, null, function():void { btn.pos(Laya.stage.width / 2 - btn.width * Browser.pixelRatio / 2, Laya.sta...

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

604. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 54%]

...r mFactory; var mArmature; (function () { Laya.init(Browser.width, Browser.height, WebGL); startFun(); })(); function startFun() { mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.loadAni("res/spine/spineRes2/goblins.sk"); } function parseComplete() { mArmature = ...

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

605. native下旋转tween卡顿 [ 54%]

...Laya.stage.addChild(ape); ape.x = Laya.stage.width / 2; ape.y = Laya.stage.height / 2; ape.scale(0.3,0.3); ape.pivot(628,613); Laya.Tween.to(ape,{rotation:360},60000); 其中转一圈的时间设置为60s或者更长,native下卡顿是非常明显的,但在web下非常流畅(native下反而效率低...

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

606. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 54%]

...pe.y = 100;             spe.width = 512;             spe.height = 512;             spe.size(512, 512);             Laya.stage.addChild(spe);             spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333");             spe.on(Event.MOUSE_D...

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

607. 升级到1.78beta版后,包编译错误 [ 54%]

...not assignable to type '(source: any, x: number, y: number, width: number, height: num ber, offsetX?: number, offsetY?: nu...'.       Types of parameters 'mipMap' and 'offsetX' are incompatible.         Type 'number' is not assignable to type 'boolean'.   2017-07-21 添加评论 免费帖 --...

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

608. Laya.MovieClip() new的时候崩溃了,在线等,很急!!!! [ 53%]

... this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni.on(laya.events.Event.COMPLETE, this, this.onSWFPlayComplete,[state]); return this.swfAni...

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

609. SCALE_FIXED_WIDTH适配屏幕的问题 [ 53%]

...          Laya.stage.width = 1218;                 Laya.stage.height = 750;                 if (Laya.Browser.onPC) {                     //设置舞台缩放模式                     Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL;                  ...

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

610. 数字和字符混搭换行不标准的问题 [ 53%]

....x = 20; UIChatText.y = 20; UIChatText.style.width = 260; UIChatText.style.height = 560; UIChatText.style.align="left";       我laya引擎已经更新1.7.10了 我希望第一行变成 我是第一行111,一111       (一直写满为止) 11 附件 : --> 2017-09-21 添加评论 免费帖...

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