大约有 988 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
Laya_社区(687) Laya2.0_文档(163) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(20) Laya3.0_文档(20) laya_api(2) Laya2.0_api(2)
...一覺盜兲喨 赞同来自: 这里的按钮,可以用 this.btn.clickHandler = laya.utils.Handler.create(this,this.方法,["你要传的参数"],false); 2018-08-28 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Try everything___ ...
来源: Laya_社区 发布时间: 20180828
...der.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 this.onLibLoaded 这个,这种怎么跟呢?谢谢。 zeorro • 2017-11-02 17:13 private onLibLoaded():void { CommonLocator.parseJsonF...
来源: Laya_社区 发布时间: 20171102
...经这样试过,还是加载失败了。 Laya.loader.create(urls, Laya.Handler.create(this, onComplete, [urls]), null, Laya.Scene); 跟Sprite3D有区别吗 188*****949 • 2018-07-26 11:31 这个问题还挺难搞的,因为只在我打包到远端加载的时候才会出问题,本地加载是o...
来源: Laya_社区 发布时间: 20180725
...用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方法中无法获取采用相对布...
来源: Laya_社区 发布时间: 20170720
...threeDimen/scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) var _script = cube.addComponent(SceneScript) as SceneScrip...
来源: Laya2.0_文档 发布时间: 20210715
...调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(this.aniUrls("die", 4), "die"); Laya.Animation.cr...
来源: Laya_社区 发布时间: 20171228
...名字.lh"}, {url:"同上.lh"}, {url:"同上"}, {url:"同上"}[code]],Handler.create(this,onLoaded)); 2018-05-29 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 灬倪先森_ 相关问题 2.0一不小心删了bin目录下的某个场...
来源: Laya_社区 发布时间: 20180529
...tMap.createMap("res/TiledMap/orthogonal-test-movelayer.json",viewRect,Laya.Handler.create(this,this.onMapLoaded)); this.tMap.scale = 1; var ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.loadImage("res/lhg.png"); ape.pos(0, 0); 2018-05-14 添加评论 免费帖 --> 分享 微博 QZO...
来源: Laya_社区 发布时间: 20180514
... Tween.to(pan,{ rotation: -(720+angle) },5000,Ease.bounceOut(0,0,0,5000),Handler.create(this,function():void{ alert(text); })); } 如以上代码 :我用在5000后面加Ease但这个类的后边全是Number 会报错 求解这个东西应该咋用 2018-06-13 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180613
...UI(): void { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")) as Laya.Button; this.changeActionButton.size(160, 40); this.changeA...
来源: Laya_示例 发布时间: 20251130