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

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

321. 连续读取多个本地json文件 [ 73%]

...ole.log("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON); } //读取商店等级配置表 shopJsonLoaded( ) { let j...

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

322. 分享-js资源进度加载 [ 73%]

...ress.json", type: Laya.Loader.ATLAS }]; Laya.loader.load(arr, Laya.Handler.create(this, this.onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并且监听 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetsLoaded), ...

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

323. laya2版本 加载ls失败 [ 73%]

...回复 兜里有糖。 赞同来自: Codee 加载的时候用 laya.loader.create 不用loader.load 试一下 2018-09-21 1 2 分享 微博 QZONE 微信 hj 赞同来自: 你发一下demo过来吧 2018-09-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经...

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

324. Animation 下的Event.COMPLETE 回调 [ 73%]

... 骨骼动画播放完后的回调时间 ios原生回调问题 Laya.loader.create 进度回调函数执行两次 Laya.Handler.create 加载图片回调参数问题 Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试...

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

325. laya.maths.Rectangle_API3.0 [ 73%]

... equals intersection intersects isEmpty recover reset setTo toString union create Constructors constructor new Rectangle(x?: number, y?: number, width?: number, height?: number): Rectangle Defined in laya/maths/Rectangle.ts:27 创建一个 Rectangle 对象。 Parameters Default value x: number = 0 ...

来源: Laya3.0_api 发布时间: 20231115

326. 3d模型资源,加载后AddChild会报错,请教一下什么原因。 [ 73%]

...源,加载后AddChild会报错,请教一下什么原因。 Laya.loader.create("laya_assert/LayaScene_role/role.lh", Handler.create(_instance, OnCreateComplete1)); private static function OnCreateComplete1():void{ trace("complete load role"); var sprite3D:Sprite3D = Laya.loader.getRes("laya_asser...

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

327. Sprite-遮罩-放大镜 [ 73%]

...age.bgColor = "#232628"; Laya.loader.load([bgPath, maskPath], Laya.Handler.create(this, this.setup)); } setup() { const Sprite = Laya.Sprite; let bgRes = Laya.loader.getRes(bgPath), maskRes = Laya.loader.getRes(maskPath); let bg = new Sprite(); Laya.stage.addChild(bg); bg.graphics.drawTexture(bgRes)...

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

328. ts版本,开发微信小游戏,wxlocal的问题,,, [ 72%]

...然后去加载wxlocal里面的资源,   Laya.loader.load(arr, Handler.create(this, this.onLoadComplete),Handler.create(this, this.onLoading, null, false)); 发现并没有去加载这个资源,加断点发现一样走到了URL.formatURL 这个函数里面, 然后和前面设置的那个ftp...

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

329. 射线检测-碰撞器混合 [ 72%]

...yaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls")); //初始化照相机 this.cam...

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

330. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...mber = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 sp.graphics.drawRect(20, 20, 100, 50, "#ffff00", "#00ff00", 5, false); this.owner.addChild(sp);...

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