大约有 959 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
Laya_社区(662) Laya2.0_文档(158) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(27) Laya3.0_api(20) laya_api(3) Laya2.0_api(2)
Laya.loader.create问题 使用Laya.loader.create方法加载了png图片 之后使用new Laya.Image(url),并添加到舞台,发现场景整个是黑的,未发现图片,而如果没使用Laya.loader.create,而直接new Laya.Image(url)的话,就会出现图片,这是为啥? 2017-05-1...
来源: Laya_社区 发布时间: 20170519
...','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.loader.load(this.urls,this.Handler.create(this,this.onAssetloaded),this.Handler.create(this, this.onLoading, null, false)); }, onAssetloaded : function(texture){ this.tl = new Laya.Anim...
来源: Laya_社区 发布时间: 20190117
...题,基本没人答,结果都是我自己慢慢研究的 Laya.loader.create([{url:"land/main.lh"}],Laya.Handler.create(this,this.onCreateComplete)); 再单独写个这个 onCreateComplete(){ var land = Laya.loader.getRes("land/main.lh"); this.scene.addChild(land); var camera = land.getChildBy...
来源: Laya_社区 发布时间: 20180807
...url: ['res/bitmapFont/test.fnt'], type: Laya.Loader.FONT }], Handler.create(this, () => { console.log('bitmapFont loaded'); this.onFontLoaded(); }), Handler.create(this, (progress) => { console.log('bit...
来源: Laya_社区 发布时间: 20190225
...n/comp/tap.mp3",type:Laya.Loader.SOUND});Laya.loader.load(resurls, Handler.create(this, onLoaded), Handler.create(this, onLoading, null, false)); function onLoaded(){ console.log(Laya.loader.getRes(src)); } 在chrome,安卓下都是正常的,在ios和mac Safari下是undefined 放在一个spri...
来源: Laya_社区 发布时间: 20170811
...使用Laya.Sprite3D.load可以加载使用,但是当我使用Laya.loader.create,能加载出来,但是无法正常使用,会提示laya.core.js:12752 Uncaught TypeError: node._setParent is not a function 具体代码如下: Laya.Sprite3D.load(url, Laya.Hander.create(this, this.onLoadCo...
来源: Laya_社区 发布时间: 20200313
... = 3; // 批量预加载资源 // Laya.loader.create([ // "res/threeDimen/staticModel/grid/plane.lh", // "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", // // "res/threeDimen/particle/RadiusMode.lh", ...
来源: Laya_社区 发布时间: 20190509
Laya.loader.create 进度回调函数执行两次!!! Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出...
来源: Laya_社区 发布时间: 20180620
Laya.loader.create 加载进度问题 我用Laya.loader.create加载.lh模型, function ModelManager() { Laya.loader.create("res/Pipe/Pipe/a.lh", Laya.Handler.create(this, this.onCreateComplete()),Laya.Handler.create(this, this.onAssetsLoading)); } ModelManager.prototype.onCreateComplete = functi...
来源: Laya_社区 发布时间: 20180514
...nica - 知识达人 赞同来自: 加载进度的回调你是用的Handler.create吗?如果是的话需要设置create里边的最后一个参数为false 2017-09-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****367 相关问...
来源: Laya_社区 发布时间: 20170909