大约有 2,033 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0056 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...00, Ease.linearIn) } } timeline.play(0, true); timeline.on(Event.COMPLETE, this, function () { count++; if (count === 2) { timeline.destroy(); count = 0; } });为什么在结束的时候,会报下面的错误呢? 附件 : --> 2017-04-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20170405
...本:2.2.0beta1,ts_new 看代码 constructor(){ super(); this.worker = new Worker(WorkerLoader.workerPath); this.worker.onmessage = function(evt:any):void { //接收worker传过来的数据函数 (this as any as WorkerLoader).workerMessage(evt.data); } } 回调函数this指向有问...
来源: Laya_社区 发布时间: 20190802
...hild(btn2); btn1.on(Event.CLICK,this,onClick); btn2.on(Event.CLICK,this,onClick); Laya.loader.load([{url: "res/atlas/common.atlas", type: Loader.ATLAS}]); ...
来源: Laya_社区 发布时间: 20180425
...; SkinMeshBuffer.getInstance().addSkinMesh(this); // todo : 这是是不是可以合并下同一贴图的submit? var tempSubmit:Submit = Submit.createShape(context, mIBBuffer, mVBBuffer, mEleNum, _indexStart, Value2D.create(ShaderDefi...
来源: Laya_社区 发布时间: 20190628
...多个图集 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onload)); 这样写只能添加一个图集,我想问有没有办法用一句代码同时添加其他图集 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20180809
...aya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` (图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个灰度图,可...
来源: Laya2.0_文档 发布时间: 20210714
...reate 回调 Laya.Tween.to(right, {x: 0} , 700 ,null , Laya.Handler.create(this,this.onStartOver1, [anim])); onStartOver1(bads: Array<any>): void { alert("1" + bads.length) var animsf :Laya.Animation = bads[0] as Laya.Animation; animsf.play(); } 这样用会报错 2017-03-09 添加评论 免...
来源: Laya_社区 发布时间: 20170309
...0,正确的应该是55吧= =,但是得到的确是0。 代码如下: this.k = new Laya.Clip("nbdz/gameover/Clip_win.png",11, 1); this.singleNumberW = this.k.width; this.k.index = 2; console.log(this.singleNumberW+"======"+this.k.width); this.addChild(this.k); 是不是因为图片太大,c...
来源: Laya_社区 发布时间: 20170804
...me":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils getClass(className:String):*[static] 根据名字返回类对象。 ClassUtils getInstance(className:String):*[static] 根据名称创建 Class 实例。 C...
来源: Laya2.0_api 发布时间: 20190513
...bohan • 2018-07-10 17:27 我怎么改变它的值呢,扇形我是通过this._graphics._one[3] = number;来改变数值的,里面的圆形改变颜色改变不了了 Laya_Aaron • 2018-07-10 17:32 这个要重新画才能改。 bohan • 2018-07-10 18:01 @Laya_Aaron:我现在,在代码里...
来源: Laya_社区 发布时间: 20180707