大约有 123 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
...date()方法的这段代码: if (handler.repeat){ if (!handler.jumpFrame){ handler.exeTime+=handler.delay; ...
来源: Laya_社区 发布时间: 20180411
Laya.Scene.open方法中的complete的handler不返回 Laya.Scene.open方法中的complete的handler在IDE中调试正常,但在微信小游戏中不返回,请问是什么原因。 2019-02-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20190219
源代码中Handler中的setTo()方法 源代码中Handler中的setTo()方法经常在什么情况下使用?有注释说”设置此对象的指定属性值。“但是看不明白 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180131
...call stack size exceeded at loadProgress (https://usr/game.js:13524:25) at Handler.__proto.runWith (https://usr/game.js:727:41) at loadProgress (https://usr/game.js:13533:14) at Handler.__proto.runWith (https://usr/game.js:727:41) at loadProgress (https://usr/game.js:13533:14) at Handler.__proto.run...
来源: Laya_社区 发布时间: 20190202
...ndroid) { //注意这里的加载 Laya.loader.load("res/layabox.ktx", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); } else { //注意这里的加载 Laya.Texture2D.load("res/layabox.jpg", Laya.Handler.create(null, function (tex: Laya.Texture2D) { mater...
来源: Laya2.0_文档 发布时间: 20210714
AS中的回调函数为什么只能用Handler创建? 比如一个主类: private var score:int; public function main():void { new class(callback); } private function callback(num:int):void { this.score = num; var tmp:int = this.score; trace(tmp); } 另外一个类:class.as ...
来源: Laya_社区 发布时间: 20161125
Laya.loader.load("", Laya.Handler.create(this, this.console)); 为什么会打印两次 附件 : --> 2018-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 加载两次 2019-05-11 0 0 ...
来源: Laya_社区 发布时间: 20181212
Laya.Handler.create 回调参数问题 var ape ; function Init() { Laya.init(400, 800, Laya.WebGL); Laya.stage.bgColor = "#999911"; ape = new Laya.Sprite(); Laya.stage.addChild(ape); var ag = ["lsd",ape,1,"str"]; ape.loadImage("../laya/assets/res/to1.png",0,0,0,0,Laya.Handler.create(this,...
来源: Laya_社区 发布时间: 20180510
... 当切到前台时 定时器会补完所有的缺省调用 while (t >= handler.exeTime) { handler.exeTime += handler.delay; handler.run(false); } 在后台挂的时间越久 会短时间造成大量的更新 2020-10-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20201020
..."res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"], Laya.Handler.create(this, function(){ }), Laya.Handler.create(this, function(e){ console.log(e) } , Laya.Loader.ATLAS); 此时进度e的值只有一个数0.41 ,不会从0到1,这是什么原因? 2018-01-01 添加...
来源: Laya_社区 发布时间: 20180101