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

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

291. 有没有SoundChannel的示例? [ 62%]

...SoundChannel的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isSt...

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

292. 音效无法播放 [ 62%]

...请: 与内容相关的链接 提交 3 个回复 zhouxiaodan 赞同来自: this.musicPath = "res/sound/bg.mp3"; this.soundPath = "res/sound/bianshen.mp3"; 为什么前面加../../就没法播放,去掉../../后就可以播放了呢? 2018-03-07 0 0 分享 微博 QZONE 微信 qian 赞同来自: ...

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

293. Laya 中用什么事件可以检测声音是否播放结束? [ 62%]

...放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效"); SoundManager.playSound("res/sounds/btn.mp3", 1, new Handler(this, onComplete)); }播放声音或音效的第3个参数就是播放...

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

294. Uncaught TypeError: Game.super is not a function [ 62%]

... not a function var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica -...

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

295. 1.7.8新版本3d骨骼动画如何获取绑点呢 [ 62%]

...x 赋值 var nodeMap = animator._avatarNodeMap; for(var attachPointName in this.m_AttachPointNodeMap){ var node = this.m_AttachPointNodeMap[attachPointName]; var srcNode = nodeMap[attachPointName]; node.transform.localMatrix = srcNode.transform().localMatrix; } zfree • 2017-08-21 17:55 我这边...

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

296. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 62%]

...ded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步:...

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

297. parameter 2 is not of type 'WebGLTexture'. [ 62%]

... videoElement.load('res/video/mov_bbb.mp4'); // 添加到舞台 let wrap = this.getChildByName('wrap') as Laya.Box; wrap.addChild(videoElement); // 监听点击事件,开始播放视频 let btn_start = this.getChildByName('btn_start') as Laya.Image; btn_start.on(Laya.Event.CLICK,this,()=>{ // 加...

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

298. textinput动态修改宽度 会出现重叠的文字 [ 62%]

...; input.size(128, 128); input.align = "center"; input.on(Laya.Event.INPUT, this, this.input, [input]); private input(input:Laya.TextInput, event:Event){ if(input.text.length > 2){ input.width += 20; } } 请问怎么解决这个问题? 附件 : --> 2017-08-20 添加评论 免费帖 --> 分享 ...

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

299. Laya.SoundManager.playSound播放声音不全 [ 62%]

...使用? //预加载声音 Laya.loader.load(BOX_OVER, Laya.Handler.create(this, this.onComplete), null, Laya.Loader.SOUND); 2018-07-09 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 谢春 相关问题 游戏运行在chrome里面 听不...

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

300. 真机上随机报错 [ 61%]

...111/.com/libs/laya.d3.js:24049: RangeError: Array buffer allocation failed this._vertices = new Float32Array(this._floatCountPerVertex * lastVBVertexCount); ^^ RangeError: Array buffer allocation failed at new ArrayBuffer (<anonymous>) at new Float32Array (<anonymous>) at ShurikenParticl...

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