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

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

331. 用ide打包后的图片,Texture显示不出来? [ 72%]

...码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );     setTimeout( function(){        ...

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

332. UI-Tab [ 72%]

..."#232628"; Laya.stage.bgColor = "#3d3d3d"; Laya.loader.load(skins, Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { var tabA = createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; var tabB = createTab(skins[1]); tabB.pos(40, 220); tabB.labelColors...

来源: Laya_示例 发布时间: 20251209

333. clearUnLoaded的bug LayaAirIDE1.7.9 [ 72%]

...ngUI"), res.download.bg("bg5")]     Laya.loader.load(arr, Laya.Handler.create(this, onComplete))     Laya.loader.clearUnLoaded()     Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) }  function onComplete(){     trace("complete") } Resources already exist,is repeated loa...

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

334. ani如何实现预加载呢? [ 72%]

...一半.  附代码: Laya.loader.load("res/atlas/res.json", Laya.Handler.create(this, onLoaded), Laya.Handler.create(this, onLoading), Laya.Loader.ATLAS); 我是在onLoaded里面用游戏资源的.... 2017-07-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

335. Android小游戏加载不打包的图会卡资源 [ 72%]

... type: Laya.Loader.IMAGE });   Laya.loader.load(this.assets, Laya.Handler.create(this, this.onAssetsLoaded) , Laya.Handler.create(this, this.progress, [], false));   在加载的时候ios的微信小游戏是没有问题的,但是到了Android微信客户端小游戏会卡资源,停进度,...

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

336. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 72%]

...平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))); //新建材质 var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { planeMat.albedoTexture = tex; })); ...

来源: Laya2.0_文档 发布时间: 20210714

337. t._addReference is not a function [ 72%]

...问题,解决了,供参考: Laya.loader.load(chapterBG, Laya.Handler.create(this, this.onBGLoaded, [chapterBG])/* , Laya.Handler.create(this, this.onBGLoadProgress) */); 第三个参数打开在某些条件下会出t._addReference is not a function 可能是加载进度回调的时候跑到纹...

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

338. TypeScript Json 数据解析 [ 72%]

... private on2DComplete(): void { Laya.loader.load("zxc.json", Laya.Handler.create(this,this. onLoadConfigComplete),null,Laya.Loader.JSON); } wayPoints:JSON; private onLoadConfigComplete(): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayPoints.name); //这里会报...

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

339. ts 空项目 版本1.7.20 下的load 调用2次 第二次 失效 [ 72%]

...res/atlas/build.atlas",type:Loader.ATLAS}) Laya.loader.load(assets,Handler.create(this,null),Handler.create(this,this.proces,null,false)); 第一次成功 当我第二次调用失败 资源not found 资源是不同的 2018-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

340. Laya.Loader.getRes请教 [ 72%]

...tRes请教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但是我换个默认的图集Lay...

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