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

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

291. Uncaught Error: Laya3D:unknown mesh version [ 68%]

...应版本下载的 导出ls文件后,laya里面代码加载 Laya.loader.create("LayaScene_yuanwenj2/Conventional/yuanwenj2.ls", Laya.Handler.create(this, function() {             console.log("sssssssssssss");         })); 或者使用 Laya.Scene3D.load('LayaScene_yuanwenj2/Conv...

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

292. 回调函数... [ 67%]

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

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

293. sprite.loadImage神奇的事情。 [ 67%]

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

294. 窗口组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...= ((await Laya.loader.load("Examples/windows/Window1.lh")) as Laya.Prefab).create(); window.show(); 也可以扩展GWindow类使用: class MyWindow extends Laya.GWindow { protected onInit() { this.contentPane = ((await Laya.loader.load("Examples/windows/Window1.lh")) as Laya.Prefab).create(); } pr...

来源: Laya3.0_文档 发布时间: 20251010

295. UI-FontClip [ 67%]

...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Laya.Handler.create(this, this.ShowContent)); } ShowContent() { const FontClip = Laya.FontClip; var clipnum= new FontClip(assets[0]); var fontClip = new FontClip(assets[1]); var TestFontClip = new FontClip(assets[1]); var TestClipNum = ne...

来源: Laya2.0_示例 发布时间: 20251209

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

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

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

资源加载,提示不识别路径 //加载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

298. 微信小游戏设置网络动态加载无法显示 [ 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

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

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

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

300. 用了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