大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...,使用对象池创建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this.bullet.create, this.bullet); flyer.pos(Laya.stage.mouseX, Laya.stage.mouseY); this._gameBox.addChild(flyer); this._chains.points="118,99,158,70,218,99,258,70,318,99,358,70,418,99,458,70...
来源: Laya_社区 发布时间: 20181128
...aya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 1280, 720,Handler.create(this,()=>{ sp.graphics.getBoundPoints().forEach(e=>{ console.log("_getBoundPointsM:",e); }); })); sp.x=0; sp.y=0; this._sptse=sp; Laya.stage.addChild(sp);
来源: Laya_社区 发布时间: 20170423
...(); camera.sky=skyDome; Laya.BaseMaterial.load("res/env.png", Laya.Handler.create(null, function(mat) { console.log(camera); //执行到了这里,显示了camera中的sky存在 //camera.sky = mat; //就算这里赋值也没用 })) ========执行的结果就是不报错也没反应 console.log(came...
来源: Laya_社区 发布时间: 20181203
...Model/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, ...
来源: Laya2.0_文档 发布时间: 20210715
...aha(obj,yy,times1,alphas,times2) { Tween.to(obj,{y:yy},times1,null,Handler.create(this,function() { Tween.to(obj.loadtext,{alpha:alphas},times2,null,null,0); })); } 2017-06-26 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cai95854006 ...
来源: Laya_社区 发布时间: 20170626
...载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.stage.addChild(testView...
来源: Laya_社区 发布时间: 20180525
... Laya.loader.load("res/atlas/Resources.json",laya.utils.Handler.create(this,this.onReader),null,laya.net.Loader.ATLAS);就好了 Buzhihew • 2017-01-11 15:50 @Monica:.......我.....总之谢谢啊啊啊 Monica • 2017-01-11 15:51 @Buzhihew:不客气(*^__^*) ...... wuquanan • 2017-09-26...
来源: Laya_社区 发布时间: 20170111
...的位置 this._list.tweenTo(this._list.page, 500, isFresh ? Laya.Handler.create(this, this.refresh) : null);核心就这句,this._list.page在滑动的距离达到某个值时,就会调用,翻到下一页,左右翻页按钮去调用没问题,位置都是正确的,只有在按下鼠标...
来源: Laya_社区 发布时间: 20180911
...f8.js:1 8The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. <URL> Scene.ts:402 Error loading Loading.ls: Error: unknown type 'xmaaYG8AQ1yC07pr_JvyPA' (anonymous) @ Scene.ts:402 Promise.then (async) load @ Scene.ts:395 open @ Scene.ts:44...
来源: Laya_社区 发布时间: 20240724
... url:"res/Bag.xml", type:Laya.Loader.BUFFER} ], Laya.Handler.create(this, this.onLoaded)); 在手机头条得到的数据是空的,手机微信是正常的,麻烦指导下 附件 : --> 2019-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20190726