大约有 988 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0080 秒)
...ad加载后创建prefab是没有问题的。 Laya.loader.load(url, Laya.Handler.create(this, function (obj: any) { let prefab = Laya.Pool.getItemByCreateFun('prefab_' + name, obj.create,obj); Laya.stage.addChild(prefab); ...
来源: Laya_社区 发布时间: 20200409
使用 Tween.to 方法报错 handler.run is not a function 使用 Tween.to 方法报错 handler.run is not a function Tween.to(ape, { x: moveObj.x, y:moveObj.y }, 1000,Ease["circIn"],function(){ alert(1) },0,false,true); 2017-02-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20170220
....load怎么停止回调 this._load = Laya.loader.load(this._data.url, Laya.Handler.create(this, this.loadComplete), null, Laya.Loader.ATLAS); 如果我想在加载的过程中 不去触发 loadComplete方法 我该怎么办? this._load.off(Laya.Event.COMPLETE, this, this.loadComplete); 这个是...
来源: Laya_社区 发布时间: 20171221
... Laya.loader.create("LayaScene_yuanwenj2/Conventional/yuanwenj2.ls", Laya.Handler.create(this, function() { console.log("sssssssssssss"); })); 或者使用 Laya.Scene3D.load('LayaScene_yuanwenj2/Conventional/yuanwenj2.ls',Laya.Handler.create(this,this.onComple...
来源: Laya_社区 发布时间: 20190618
... Laya.Tween.to(this.obj,{scaleY:1,scaleX:1},10,Laya.Ease.backIn,Laya.Handler.create(this,this.backEdHd)); } this.init = function(){ Laya.Tween.to(this.obj,{scaleY:1.05,scaleX:1.05},100,Laya.Ease.backOut,Laya.Handler.create(this,this.clickEnd)); ...
来源: Laya_社区 发布时间: 20170301
...lter; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Main { private ApePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(B...
来源: Laya2.0_文档 发布时间: 20210715
...本信息文件 ResourceVersion.enable("version.json", Laya.Handler.create(this, LoadRes)); 这些档案变成这样 filename5d7eba.png 可以自定吗? 例如 filename.0.0.11.png 附件 : --> 2018-11-27 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20181127
... skeleton.zOrder = 1; skeleton.load("dragonBones/chicken/chicken.sk", Laya.Handler.create(this, (e) => { console.log(e); let num = skeleton.getAnimNum() let name = skeleton.getAniNameByIndex(num - 1); skeleton.play(name) })); this.owner.addChild(skeleton); 2019-04-16 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20190416
...Tween; to0(); function to0() { Tww.to(this.lis, { alpha: 0.5 }, 500, null, Handler.create(this, to1)); } function to1() { Tww.to(this.lis, { alpha: 1 }, 500, null, Handler.create(this, to0)); } 在AS中是没有问题的。 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20180524
list按钮点击绑定失败问题 我按论坛说的,在renderHandler里绑定UI的事件。 但只有第一项绑定成功,而且还绑定两次,其它全都绑定失败,请问,要怎么解决这个问题? 2018-09-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180907