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

大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0079 秒)

1211. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 84%]

...ra: Laya.Camera;    onStart() {     //@ts-ignore     window.camera = this.camera;     console.log("Game start", this.camera._up);     console.log(       "Game start",       this.camera._up.x,       this.camera._up.y,       this.camera._up.z     );   } } 附件 : --> testProj...

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

1212. Laya.timer缩放问题 [ 84%]

Laya.timer缩放问题 Laya.timer.loop(1,this,this.fun);将Laya.timer.scale = 0.1;没有效果; Laya.timer.frameLoop(1,this,this.fun)将Laya.timer.scale = 0.1;则可以看到方法调用的频率变低了,这是为什么? 2019-10-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

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

1214. 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_示例 发布时间: 20250227

1215. 资源版本问题 [ 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

1216. 创建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

1217. 面板容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 84%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.panel.pos(100, 100); this.panel.size(200, 200); this.panel.scrollType = Laya.ScrollType.Both; //滚动类型:水平与垂直都滚动 this.panel.vScrollBarSkin = "atlas/comp/vscroll.png"; this.panel.hScrollBarSkin = "atl...

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

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

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

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