大约有 914 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0051 秒)
Laya_社区(692) Laya2.0_文档(89) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(25) Laya3.0_api(19) laya_api(1) Laya2.0_api(1)
...source:Array = ["res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Handler.create(this, onComplete)); } private function onComplete():void { //记载场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //加载相机 var camera:Camera = scene.addC...
来源: Laya2.0_文档 发布时间: 20210714
...实现方式: public function LayaAirDemo() { Laya.init(800,800); Laya.loader.load('logo.png',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.d...
来源: Laya_社区 发布时间: 20170505
粒子图片错误 Laya.loader.load("res/yan.part", Laya.Handler.create(this, this.onAssetsLoaded), null, Laya.Loader.JSON); var yan = new Laya.Particle2D(settings); yan.emitter.start(); yan.play(); this.particlesPos.addChild(yan); 编辑器里面设置是对的 但是在网页上运行,图片...
来源: Laya_社区 发布时间: 20181220
...请: 与内容相关的链接 提交 1 个回复 纪龙 赞同来自: Laya.loader.load("res/sounds/light.mp3", Laya.Handler.create(this, ()=>{ console.log("load light.mp3"); Laya.SoundManager.playMusic("res/sounds/light.mp3"); ...
来源: Laya_社区 发布时间: 20180814
...几个文件会超过秒级,有时会20几秒,用的加载方式是 Laya.loader.load( url,Handler.create(this,comFun),null,Loader.IMAGE,0); 这个等待时间有没有大牛搞过啊 附件 : --> 2018-07-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20180721
...,导致这个问题是因为没有资源也调用了加载完成, Laya.loader.on(Laya.Event.ERROR, this, this.onLibError); Laya.loader.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 thi...
来源: Laya_社区 发布时间: 20171102
...nfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; config=laya.net.Loader.getRes("res/config/playerCard.json"); Playe...
来源: Laya_社区 发布时间: 20180117
... Laya致命问题 -预加载,进度问题 使用情况描述: 使用Laya.loader.load加载2d和声音资源使用 Laya.loader.create加载3D场景和模型资源 问题描述: 预加载效果不明显(每次进入时,加载进度都非常慢,需要花半分钟加载,20mb的资源)加载模型...
来源: Laya_社区 发布时间: 20180507
...擎有没有管理或访问系统剪贴板的方法函数 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 注册函数里面 事件侦听函数的执行域 的详解 关于customRender函数不执行的问题...
来源: Laya_社区 发布时间: 20170611
...。 新建一个粒子,加载就报错。 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(); /...
来源: Laya_社区 发布时间: 20191227