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

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

1231. load完成后能否获取到具体是哪个对象资源完成 [ 84%]

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

1232. [LayaAir3]插件开发中,我需要选择文件夹,如何可视化选择文件夹 [ 84%]

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

1233. 龙骨删除后内存不减少 [ 84%]

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

1234. 关于ASTC使用问题和建议 [ 84%]

...上使用的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

1235. 请问Tiledmap怎么取到指定格子的属性值 [ 84%]

...邀请: 与内容相关的链接 提交 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

1236. layaAir2.3克隆以及获取节点重大bug!!! [ 84%]

...正常         //Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish1));         //第二种 用自己unity导出的场景直接克隆整个.lh文件也显示正常         //Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish2)...

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

1237. Sprite3D的克隆(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 84%]

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

1238. Sprite加载图片 是异步操作吗? [ 84%]

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

1239. 发光滤镜二次渲染bug [ 84%]

...splay(value) {             if (!value) {                 if (this._cacheStyle) {                     this._cacheStyle.releaseContext();                     this._cacheStyle.releaseFilterCache();                     if (this._cacheStyle.hasGlowFilter) {   ...

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

1240. ls文件导入错误 [ 84%]

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