大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0075 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... 但是动画会突然卡在某一帧一段时间, 如图 代码如下: this.frameLoop(1, this, () => { let interval = xxxxxx; this.tire.interval = interval; console.log("animation.index: " + this.tire.index); }); 另外说明: 只要不每帧改变interval 就不会卡住 附件 : --> 2020...
来源: Laya_社区 发布时间: 20201012
...内容相关的链接 提交 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
...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
...反映啊 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
...碰撞 OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 new this.box2d box2d 是undefined 请问这里的 this 指向是 ?? contact.getHitInfo = function () { var manifold = new this.box2d.b2WorldManifold(); this.GetWorldManifold(ma...
来源: Laya_社区 发布时间: 20220819
...加载wxlocal里面的资源, Laya.loader.load(arr, Handler.create(this, this.onLoadComplete),Handler.create(this, this.onLoading, null, false)); 发现并没有去加载这个资源,加断点发现一样走到了URL.formatURL 这个函数里面, 然后和前面设置的那个ftp地址拼...
来源: Laya_社区 发布时间: 20180714
...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
...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
... } 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
...组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.img.skin = "resources/layaAir.png";//设置皮肤 this.img.useSourceSize = true;//设置图片大小为源大小 this.img.color = "#0000FF";//设置颜色为蓝色 } } 二、通过代码创建Image组件 有时,不想让...
来源: Laya3.0_文档 发布时间: 20251010