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

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

671. sprite不能设置点击区域 [ 64%]

... sp.graphics.drawPie(0, 0, 300, 0, 90, "#00ffff"); sp.on(Laya.Event.CLICK, this, this.aa) sp.mouseEnabled = true; // 设置点击区域没有作用 var hitArea = new Laya.HitArea(); hitArea.unhit.drawPie(0, 0, 150, 0, 90, "#00ffff"); sp.hitArea = hitArea; 我想要实现的效果就是一个扇形...

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

672. app 上使用 soundchannel.pause() 暂停音效音乐,用 resume() 播放都会从头开始播放 [ 64%]

... let _pause:boolean = false;         btn1.on(Laya.Event.CLICK,this,()=>{             if(!_pause)return;             sound.pause();             _pause = false         })         btn2.on(Laya.Event.CLICK,this,()=>{        ...

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

673. 苹果8使用autoDestroyAtClosed界面卡死 [ 64%]

...mate20也会出现    然后在laya.core.js里面的destroy方法里的 this._cacheStyle && this._cacheStyle.recover(); 这行代码给注释掉 然后就不会卡死 。。。。 但是还是会出现各种画面停在最后一帧 2019-04-23 0 0 分享 微博 QZONE 微信 为什么被折...

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

674. 多选框组件 · LayaAir3.0文档 · LAYABOX [ 64%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.checkbox.pos(300, 300); // this.checkbox.selected = true; this.checkbox.label = "多选框"; this.checkbox.labelBold = true; this.checkbox.labelSize = 30; this.checkbox.labelColors = "#0100ff, #16fa0e, #ff0000"; //各状...

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

675. laya转换的as的安卓工程,如何获取进入前台跟后台的事件 [ 64%]

...何获取进入前台跟后台的事件 Laya.stage.on("visibilitychange", this, this._onVisibilitychange) 这个方法跟监控焦点的方法好像都不行,一到安卓机子上就监控不了了 2020-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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

676. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 64%]

...域的点击事件,触发后执行switchImg切换图片 img.on("click",this,switchImg); //将图片添加到舞台 Laya.stage.addChild(img); } private function switchImg(e:*=null):void { //清空图片 img.graphics.clear(); //获得要切换的图片资源路径 var imgUrl:String = (flag = !flag)?...

来源: Laya2.0_文档 发布时间: 20210715

677. 我想给一段文字添加个点击事件,点击后文字会出现放大缩小的效果,要怎样才能实现 [ 64%]

...中 写变大的逻辑 伪代码大概这个样子   btn.on(Event.CLICK, this, onBtnClick);    然后 onBtnClick方法里面写放大的逻辑   2018-08-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 bububu 相关问题 Dialog:...

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

678. 侦听加速器运动在ios手机下无法监听 [ 64%]

...ios手机下无法监听 Laya.Accelerator.instance.on(Laya.Event.CHANGE, this, this.monitorAccelerator); 在android手机中是没有问题的,在ios手机无法监听这个事件 附件 : --> 2020-02-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

679. Touch接口缺少stageX,stageY [ 64%]

...   if (touches && touches.length == 2) {                 this.preRadian = Math.atan2(                     touches[0].stageY - touches[1].stageY,                     touches[0].stageX - touches[1].stageX);                 Laya.stage.on(Event.MOUSE_MOVE, th...

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

680. 龙骨动画播放感觉少了纹理 [ 64%]

...on.scaleX = -1; } bone.addChild(skeleton); skeleton.on(Laya.Event.STOPPED, this, this.playCom, [bone]); skeleton.play(bone.direction, false);     播放方式就和官方的一样  或者说是不是不支持叠加模式啊? 附件 : --> 2017-12-25 添加评论 免费帖 --> 分享 微博 QZONE...

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