大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0078 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
load完成后能否获取到具体是哪个对象资源完成 this.LoadAsset("res/LayaScene_H5TestScene/H5TestScene.ls"); private LoadAsset(path: string): void { Laya.loader.create(path, Laya.Handler.create(this, this.OnAssetComplete)); } private OnAssetComplete(): void { console.log("on asset comp...
来源: Laya_社区 发布时间: 20180316
...tings("SplitAtlasSetting").data; panel.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; panel.on("click_start_gen", this.startGen, this); } protected onShown() { (this.contentPane as IEditor.InspectorPanel).resetDefault(); this.title = "SplitAtlas"; this.setSize(450, 180); } } class Spl...
来源: Laya_社区 发布时间: 20250702
... templet = new Laya.Templet(); templet.on(Laya.Event.COMPLETE, this, () => { this.skeleton = templet.buildArmature(1); this.pos1.addChild(this.skeleton); this.skeleton.play("work", true); }); ...
来源: Laya_社区 发布时间: 20210811
...上使用的png格式的图片,使用的同步的编程方式,及: this.img.texture = "ui/guide01.png"; 或者是 let tex = new Laya.Texture(); tex.load("ui/guide01.png", Laya.Handler.create(this, ()=>{ this.img.texture = tex; })); 但是如果使用ASTC纹理时就会报错,需要...
来源: Laya_社区 发布时间: 20220919
...邀请: 与内容相关的链接 提交 3 个回复 dsk4120 赞同来自: this.pass_layer = this.tiledMap.getLayerByName("pass_layer");//获取通行层 var a = this.pass_layer.getTileData(x, y); var walkable = this.tiledMap.getTileProperties(0, a - 1, "walkable"); if (walkable === 1) { // 可行走...
来源: Laya_社区 发布时间: 20180808
...正常 //Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish1)); //第二种 用自己unity导出的场景直接克隆整个.lh文件也显示正常 //Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish2)...
来源: Laya_社区 发布时间: 20200107
...e("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = L...
来源: Laya2.0_文档 发布时间: 20210714
Sprite加载图片 是异步操作吗? this.bg_2.loadImage("background.png"); this.bg_2.pos(0,this.bg_2.height); 这时候 this.bg_2.height 的值打印出来是0 2017-10-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...
来源: Laya_社区 发布时间: 20171002
...splay(value) { if (!value) { if (this._cacheStyle) { this._cacheStyle.releaseContext(); this._cacheStyle.releaseFilterCache(); if (this._cacheStyle.hasGlowFilter) { ...
来源: Laya_社区 发布时间: 20210629
...ity导出一个文件,然后layabox中加载场景。 Laya.loader.create(this.strScene, Laya.Handler.create(this, this.onLoadScene)); private onLoadScene() { var scene: Laya.Scene = Laya.Scene.load(this.strScene); if (scene == null) { return; } this.mScene = scene; 大致的流程如上 错...
来源: Laya_社区 发布时间: 20180418