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

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

591. runtime this.loadScene is no a function [ 92%]

runtime this.loadScene is no a function 按照官方demo 编写的一个案例,一样挂载一个runtime代码   但是提示异常,有哪位可以帮忙解惑,希望不要随便给官方链接让我自己抄。。。。。 谢谢各位了 附件 : --> UserGame.zip 2020-12-18 添加评论 ...

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

592. 小游戏环境下 声音的缓存机制导致更换声音文件失败 [ 92%]

...             url = URL.formatURL(url);             this.url = url;             this.readyUrl = url;             if (MiniSound._audioCache[this.readyUrl]) {                 this.event(/*laya.events.Event.COMPLETE*/"complete");      ...

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

593. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 92%]

调用动画结束on方法,报错this.zombieAnimator.on is not a function 创建官方示例3D Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Lay...

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

594. sprite 添加点击事件没反应,对sprite设置了size也没用 [ 92%]

...邀请: 与内容相关的链接 提交 4 个回复 jiehao 赞同来自: this.btn.graphics.drawTexture(window.music.btn_on) ; this.btn.pivot(75/2 , 75/2) ; this.btn.x = window.client_width - 25 ; this.btn.y = 25 ; this.btn.scaleX = 25 / 75 ; this.btn.scaleY = 25 / 75 ; Laya.stage.addChild(this.btn) ...

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

595. 无法清除指定定时器 [ 92%]

无法清除指定定时器 发起一个定时器: Laya.timer.loop(1000,this,this.fan); 当执行 Laya.timer.clear(this,this.fan);时, 控制台还是在执行 fan 函数里的代码 2018-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

596. [BUG]刚体约束问题,移动后约束混乱! [ 92%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果  * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本...

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

597. Image不能清空图片吗? [ 92%]

Image不能清空图片吗? if(!this.lastMakeMc){ //类型小图片 this.lastMakeMc = new Image(); this.collectUIMC.addChild(this.lastMakeMc); this.lastMakeMc.pos(123,68); this.lastMakeMc.size(32,32); }else{ this.lastMakeMc.skin = "face/type"+type+".png"; } if(type == -999){ this.lastMakeMc.dispo...

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

598. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 92%]

...) { //初始化舞台 Laya.init(1334,750,Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //添加到舞...

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

599. this.bitmap.activeResource is not a function. [ 92%]

this.bitmap.activeResource is not a function. 排行榜主域绘制开放数据域sharedCanvas时候报错。代码如下:var rankTexture = new Laya.Texture(Laya.Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); spri...

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

600. EventDispatcher.hasListener问题 [ 92%]

...Listener问题 var e:EventDispatcher = new EventDispatcher(); e.on("test", this, this.test1); e.on("test", this, this.test2); e.off("test", this, this.test1); e.off("test", this, this.test2); console.log(e.hasListener("test")); ---------------------------------------- 输出:true   2018-04-23 添...

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