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

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

1231. list 加载动画为什么实现的效果会错乱掉? [ 84%]

...乱掉? var WID = 80, HEI = 400; function Item1() { Item1.__super.call(this); this.size(WID, HEI); this.setImg = function(src) { var ani = new Animation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ...

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

1232. UI-TextArea [ 84%]

...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = ...

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

1233. 资源版本问题 [ 84%]

...E_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) }...

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

1234. 创建laya的视图销毁destroy()清除不了 [ 84%]

....display.Sprite { private display:ui.mail.mail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSelf(); super.destroy(); } }就是这段简单的测试代码,怎么销毁,内存还...

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

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

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

1237. 龙骨删除后内存不减少 [ 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

1238. 关于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

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

1240. 请问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