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

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

211. 回调函数... [ 68%]

回调函数... constructor(){ Laya.loader.load(this.skins, Handler.create(this, this.onUIAssetsLoaded)); } aaa() { } function onUIAssetsLoaded( this.aaa();//为什么回调函数不能调用,undefined } 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

212. sprite.loadImage神奇的事情。 [ 68%]

...r_head.loadImage(playerInfo.head_url,0,0,playerHeadWH,playerHeadWH,Handler.create(this,function(){ alert('load done'); }) 在微信iphone 6plus里,死活不进这个回调。 在PC浏览器里调试没有任何问题。 已经确认图片地址没有任何问题 2017-05-22 添加评论 免费帖 -...

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

213. [0]laya-zip游戏加载提速库(Laya3.0版本适配更新) [ 68%]

.../Player.zip,则使用方法为[code]// Laya 2.x及以下版本 Laya.loader.create([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code][code]// Laya3.x版本 Laya.loader.load([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code] 加载资源使用:[code]// Laya 2.x及以下版本 let player1 =...

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

214. 资源加载,提示不识别路径 [ 68%]

资源加载,提示不识别路径 //加载3D资源 Laya.loader.create([{url:"LayaScene_Demo/Demo.ls","type":Laya.Scene}, {url:"LayaScene_Scene/Scene.ls","type":Laya.Scene}, {url:"LayaScene_People/People.lh","type":Laya.Sprite3D}], Laya.Handler.create(this,this.on3DComplete)); 报错提示 messag...

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

215. 加载成功要怎样判断呢? [ 67%]

...存,强制再加载也不行也不行→Laya.loader.load(path, Handler.create(this, onLoaded), null, Loader.XML, 1, false, null, true);  cache和ignoreCache这两个参数有什么作用?要怎样设置能重新加载? 版本1.6.2 2017-03-25 0 0 分享 微博 QZONE 微信 cuixueying 赞同来...

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

216. 微信小游戏设置网络动态加载无法显示 [ 67%]

...ame.png", type:Laya.Loader.IMAGE });  Laya.loader.load(asset,Laya.Handler.create(this,loadingCallback),null);  用Chrome调试可以显示,用Layaair调试报 [warn]Retry to load: res/atlas/bubbles.atlas [warn]Retry to load: res/atlas/game.atlas [warn]Retry to load: game/bgGame.png在微信开...

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

217. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 67%]

...ite3D(mesh); //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("LayaScene_01/Assets/model/loveScene_jianzhu.lm",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void { //创建预加载的模型网格 var mesh:Laya.Mesh = Laya...

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

218. 最新的ResourceVersion发布以后加载的url不正确 [ 67%]

...sourceVersion.enable(     "version.json?" + Math.random(),     Handler.create(this, this.onVersonLoaded));   然而发布的游戏启动后发现加载失败,查看日志发现加载的URL拼得不对:   它加载使用的路径是一个奇怪的: http://localhost/h5/res/atlas/ui/sharedc...

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

219. 用了Sprite3D.instantiate方法,在iPhone6上性能降低了80% [ 67%]

...tatic loads3d(id, path, handler=null):void{   s3d.load(path, Laya.Handler.create(null, function(sp){ x.s3ds[id] = sp; if(handler)handler.loadeds3d(id, sp); })); }  我首先用loads3d方法加载所有的.lh文件,然后用Sprite3D.instantiate方法加载入场景后,在iPhone6上性能降低...

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

220. Cannot read property 'load' of null [ 67%]

...", "res/img/map/29.jpg", ]; Laya.loader.load(this.skins,laya.utils.Handler.create(this, this.LoadSuccess,null,false)); } private LoadSuccess() { ViewManager.getInstance().CreateView(contant.loginId,new LoginView()); ViewManager.getInstance().ShowView(contant.loginId); } public SwictMap(index: number...

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