大约有 1,210 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)
Laya_社区(903) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(30) laya_api(2) Laya2.0_api(2)
陀螺仪和加速计使用问题 Laya.Gyroscope.instance.on(Laya.Event.CHANGE,this,this.onDeviceorientation); Laya.Accelerator.instance.on(Laya.Event.CHANGE,this,this.onMotoin); 官网陀螺仪和加速计例子中的上面两句运行时都报 Cannot read property 'instance' of undefined 的错...
来源: Laya_社区 发布时间: 20180413
...var _channel:Channel = new Channel(); _channel=_sound.play( ); _channel.addEventListener(Event.SOUND_COMPLETE,onComplete); 而Laya 中用什么事件可以检测声音是否播放结束? 2017-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20170330
...ction() { console.log("starConnection"); conn=new HttpRequest(); conn.once(Event.PROGRESS, this, onHttpRequestProgress); conn.once(Event.COMPLETE, this, onHttpRequestComplete); conn.once(Event.ERROR, this, onHttpRequestError); var buffBody=new Byte(); buffBody.endian=Byte.BIG_ENDIAN; buffBody.writeI...
来源: Laya_社区 发布时间: 20160726
...代码,了解这两个方法的使用。 ```java package { import laya.events.Event; import laya.map.TiledMap; import laya.maths.Rectangle; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class TiledMapDemo { private var tMap:TiledMap; private var scaleValue:N...
来源: Laya2.0_文档 发布时间: 20210714
...is, onLoading, null, false)); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, onError); this.moveover =true; function onAssetLoaded(texture) { console.log("加载结束"); pic="res/castlebeyond.jpg"; this.bgimg =...
来源: Laya_社区 发布时间: 20171024
...? 不管是Laya.loader.load(url, onLoaded, ...) 还是Laya.loader.on(Event.COMPLETE, this, onLoaded); 加载失败都会到onLoaded,那怎么区分是不是加载成功? 2017-03-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20170325
...为复现工程,具体代码在GameUiTest.js this.imaAudioLocal.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "res/audio/sound_click.wav"; Laya.SoundManager.playSound(resUrl, 1); }); this.imaAudioNet.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "https://具体地址见工程代码/h5/gun_...
来源: Laya_社区 发布时间: 20200225
Animation 下的Event.COMPLETE 回调 加入回调 为啥 我的动画都不播放了 _gameTableScene["donghua"+ transformToDesignIndex(msg.index)]._childs[0].on(Event.COMPLETE,null,OnAnimation()); 是我写的不对吗? 2018-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20180323
... var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, this, cb_onSuccess); req.on(laya.events.Event.ERROR, this, cb_onFail); req.send(url); } // 下载jpg图片成功后,显示在舞台上,response为 bmp图片...
来源: Laya_社区 发布时间: 20170103
...Sprite3D = scene.addChild(Sprite3D.load("part.lh")) as Sprite3D; part.once(Event.HIERARCHY_LOADED, this, function():void{ part.transform.localScale = new Vector3(3, 3, 3); }); 我按照这个调整粒子大小,不起作用啊 2018-07-09 0 6 分享 微博 QZONE 微信 Laya_Aaron 赞...
来源: Laya_社区 发布时间: 20180705