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

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

201. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 74%]

..._proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addChannel(this); this.isStopped = false; this._clearBufferSource(); if (!this.audioBuffer) { // console.log("audioBuffer is null",this.u...

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

202. Dialog 关闭效果无效 [ 74%]

...ll, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on close effect") this.close(); } return CommonDlg; })(Laya.Dialog);console.log并未输出任何东西 2017-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

203. 龙骨动画demo [ 73%]

...ad("dragonBones/chicken/chicken.sk", Laya.Handler.create(this, (e) => { console.log(e); let num = skeleton.getAnimNum() let name = skeleton.getAniNameByIndex(num - 1); skeleton.play(name) }));  this.owner.addChild(skeleton); 2019-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

204. laya无法解析部分属性 [ 73%]

... 2017-02-22 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 你的 console.log(guanbimyxd+2);         console.log(uppage+2);写错了吧 应该是让组件的某个属性值去加上另外一个值,而并非组件本身吧! 2017-02-22 0 0 分享 微博 QZONE 微信 为什么被折叠...

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

205. 从对象池里取出的对象设置坐标失败 [ 73%]

...????底层对象池没有做好? v.pos(nextPost.x, nextPost.y) console.log(nextPost, v.x, v.y) console.log(v)   附件 : --> 2018-05-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Nothing 赞同来...

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

206. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 73%]

...; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void {     console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=true时,是否可穿透。默认值为false...

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

207. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 73%]

...nt is not a function this.imageBg = this.owner.getChildByName("image_bg"); console.log("this.imageBg==="+this.imageBg); for (let iColumns = 1; iColumns < this.intColumns; iColumns++) { this.arrLove[iColumns] = []; for (let iRows = 1; iRows < this.intRows; iRows++) { let iNum = Math.round(Math....

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

208. 预加载结束之后还是报lose skin [ 73%]

...is.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Texture){ console.log("加载结束"); } Log输出内容 Warning!,this class[MiniAdpter] already exist: Object {} 加载进度: 0.3 加载进度: ...

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

209. sound manager在MOUSE_OVER事件中无法播放 [ 73%]

...    private onPlayMusic(e: Event): void {             console.log("播放音乐");             SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, this.onComplete));         }          private onPlaySound(e: Event): void { ...

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

210. 当使用代码创建打开场景时,onOpened触发了,但场景active和activeInHierarchy还是处于false,请问纯代码怎么实现场景创建激活,谢谢 [ 73%]

...谢谢?   const scene = new Laya.Scene(); scene.onOpened = () => { console.log('scene onOpened'); }; scene.open(); console.log('scene', scene.active, scene.activeInHierarchy); Laya.timer.frameOnce(10, this, () => {   console.log('scene 2', scene.active, scene.activeInHierarchy); });   日...

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