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

大约有 959 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)

61. Laya.loader.create问题 [ 80%]

Laya.loader.create问题 使用Laya.loader.create方法加载了png图片 之后使用new Laya.Image(url),并添加到舞台,发现场景整个是黑的,未发现图片,而如果没使用Laya.loader.create,而直接new Laya.Image(url)的话,就会出现图片,这是为啥? 2017-05-1...

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

62. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 80%]

...','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

63. 如何获取unity导出的摄像机 [ 80%]

...题,基本没人答,结果都是我自己慢慢研究的 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

64. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 80%]

...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

65. ios load后 声音播放问题 [ 80%]

...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

66. 求助。资源加载问题,按照官方demo出现问题 [ 80%]

...使用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

67. Resources already exist,is repeated loading 加载特效报重复加载 [ 80%]

... = 3;      //  批量预加载资源         // Laya.loader.create([         //  "res/threeDimen/staticModel/grid/plane.lh",         //  "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",         // //   "res/threeDimen/particle/RadiusMode.lh",     ...

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

68. Laya.loader.create 进度回调函数执行两次!!! [ 80%]

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

69. Laya.loader.create 加载进度问题 [ 79%]

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

70. Laya.loader.load 加载时长10秒,的progress 回调只会调用一次,0.2就再也不会被调用到了。为什么啊 [ 79%]

...nica - 知识达人 赞同来自: 加载进度的回调你是用的Handler.create吗?如果是的话需要设置create里边的最后一个参数为false 2017-09-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****367 相关问...

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