大约有 1,800 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
Laya_社区(1135) Laya2.0_文档(198) Laya3.0_api(114) Laya2.0_api(105) Laya2.0_示例(83) Laya_示例(70) laya_api(64) Laya3.0_文档(31)
...视口 TiledMap createMap(mapName:String, viewRect:Rectangle, completeHandler:Handler, viewRectPadding:Rectangle = null, gridSize:Point = null, enableLinear:Boolean = true, limitRange:Boolean = false):void 创建地图 TiledMap destroy():void 销毁地图 TiledMap getLayerByIndex(index:int)...
来源: laya_api 发布时间: 20170929
...视口 TiledMap createMap(mapName:String, viewRect:Rectangle, completeHandler:Handler, viewRectPadding:Rectangle = null, gridSize:Point = null, enableLinear:Boolean = true, limitRange:Boolean = false):void 创建地图 TiledMap destroy():void 销毁地图 TiledMap getLayerByIndex(index:int)...
来源: Laya2.0_api 发布时间: 20190513
...。 playQiPaoParticle() { Laya.loader.load('noLanguage/test.part', Laya.Handler.create(this, this.onAssetsLoaded), null, Laya.Loader.JSON); } onAssetsLoaded(settings: Laya.ParticleSetting) { let sp = new Laya.Particle2D(settings); // sp.emitter.start(); // sp.play(); Laya.stage.addChild(sp); ...
来源: Laya_社区 发布时间: 20191227
...缓存资源 通过 lh格式 生成的 Sprite3D, Laya.loader.create(_path, Handler.create(this,OnComplete),null,Sprite3D); 要怎么清理掉他的所有缓存资源? 附件 : --> 2018-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180517
.../加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, () => { alert("onLoaded!"); }), null, Laya.Loader.ATLAS, 1, true, null, false, true); useWorkerLoader参数设为true后,文件加载不成功? 附件 : --> Demo.zip 2019-01-11 添加评论 免...
来源: Laya_社区 发布时间: 20190111
...次, 我用的Laya.SoundManager.playSound("res/sound/match.wav", 1, new Handler(this, this.onComplete)); version.json里配置是这样的: "res/sound/Match.wav":"res/sound/Match6888397f.wav" 2018-06-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20180615
...aya加载资源一般是用这种处理方式: Laya.loader.load(res, new Handler(caller, callBack)); 这里隐藏了一个问题,就是caller 被 Laya.loader 内某个成员持有引用,加载完成触发callBack后才释放。 如果网络较差, 加载完成的时候,预期已经销毁...
来源: Laya_社区 发布时间: 20180510
...th); emotionSwf.play(0,false); emotionSwf.playTo(0, emotionSwf.count, Laya.Handler.create(this,() => { emotionSwf.stop(); emotion.visible = false; })); 如上代码,发现调研play(0,false)后,动画还是一直循环播放,还是emotionSwf.count一直为0,导致播放完成的回调会...
来源: Laya_社区 发布时间: 20181029
...is, function () { Laya.SoundManager.playSound("sound/readygo.mp3", 1, Laya.Handler.create(this, this.playReadyComp)); }) private playReadyComp (){ Laya.timer.once(800, this, function () { Laya.SoundManager.playMusic('sound/bgm.mp3', 0); }) } 两次嵌套 ,第二个音乐不播放 2017-06-29 添加...
来源: Laya_社区 发布时间: 20170629
... 3 个回复 cuixueying 赞同来自: { Laya.loader.load("ui/image.png", Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var texture:Texture=Loader.getRes("ui/image.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture); Laya.stage.addCh...
来源: Laya_社区 发布时间: 20170603