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

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

1451. laya帧动画改变interval会卡住 [ 81%]

... 但是动画会突然卡在某一帧一段时间, 如图 代码如下:   this.frameLoop(1, this, () => { let interval = xxxxxx; this.tire.interval = interval; console.log("animation.index: " + this.tire.index); });   另外说明: 只要不每帧改变interval 就不会卡住 附件 : --> 2020...

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

1452. 请问laya中js如何继承自己写的类 [ 81%]

...内容相关的链接 提交 3 个回复 gls_laybox 赞同来自: t2.super(this);也是报错的,说没有构造方法 2018-01-04 0 0 分享 微博 QZONE 微信 qian 赞同来自: 建议参考https://ask.layabox.com/question/811 2018-01-04 0 6 分享 微博 QZONE 微信 gls_laybox 赞同来自: /*...

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

1453. 计时器-延迟调用 [ 81%]

...nction demonstrate() { for (var i = 0; i < 10; i++) { Laya.timer.callLater(this, onCallLater); } } function onCallLater() { console.log("onCallLater triggered"); var text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF"; text.text = "打开控制台可见该函数仅触...

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

1454. 官方的示例贴上来,怎么没反映啊 [ 81%]

...反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler)...

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

1455. 2.13版本 2D物理碰撞OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 [ 81%]

...碰撞 OnTriggerEnter 第三个参数 contact.getHitInfo() 报错   new this.box2d   box2d 是undefined 请问这里的 this 指向是 ??   contact.getHitInfo = function () {                 var manifold = new this.box2d.b2WorldManifold();                 this.GetWorldManifold(ma...

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

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

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

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

1457. 如何获得box单独每个面的material [ 81%]

...ConstValue.boxWidth, ConstValue.boxWidth, ConstValue.boxHeight); var box = this.parent.addChild(new Laya.MeshSprite3D(mesh)); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.position = new Laya.Vector3(ConstValue.boxOutScreen,ConstValue.boxHeight/2,0); var material = ne...

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

1458. l微信开放域无法显示,但是可以正常传数据 [ 81%]

...test.atlas" ){ Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } }.bind(this)); else Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } onComplete(): void { console.log("complated"); //初始化rank排行榜 var rank = new BigRan...

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

1459. Laya.loader.load 教程代码出错 [ 81%]

...      }             Laya.loader.load(arr,Handler.create(this,LoadComplated));         }         private function LoadComplated(e:*=null):void         {             Laya.stage.addChild(img);             img.on("click",this,OnImgClick);...

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

1460. 图像组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 81%]

...组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.img.skin = "resources/layaAir.png";//设置皮肤 this.img.useSourceSize = true;//设置图片大小为源大小 this.img.color = "#0000FF";//设置颜色为蓝色 } } 二、通过代码创建Image组件 有时,不想让...

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