大约有 1,301 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
Laya_社区(739) Laya2.0_文档(164) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(27)
...反射贴图 Laya.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
...a.Loader.ATLAS }); //加载图集资源 Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 嗯 加载改好了 我们先来测试一下 图片是否能拿到 我们在onLoaded方法里面 写一点测试代码 如下 functi...
来源: Laya_社区 发布时间: 20160801
... 2018-03-29 15:48 Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("XXXXX1.ani"); //添加到舞台 Laya.stage.addChild(tl); //播...
来源: Laya_社区 发布时间: 20180329
...kimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500,500, Handler.create(this,function():void{ photoimg.removeChild(maskimg); })); }); 必须这么写才行 先添加 在移除 ljy328803417 • 2018-02-26 17:40 我也出现了上面的问题,结果发现是显示对象没高宽问...
来源: Laya_社区 发布时间: 20160923
...ion;Laya.Tween.to(box.potOld,{ x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animation...
来源: Laya_社区 发布时间: 20170630
...le.log("播放音效"); Laya.SoundManager.playSound("res/AK47.mp3", 1, new Handler(this, this.onComplete)); 很简单的调用就崩溃了,麻烦看看,谢谢!!! 附件 : --> 2018-06-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20180611
...的链接 提交 1 个回复 Laya_Aaron 赞同来自: 用这个rg.selectHandler = new Handler(this, onSelectChange); 在onSelectChange里面实现功能 2018-01-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 183*****288 相关问题...
来源: Laya_社区 发布时间: 20180126
....img.mask = imgMask; Laya.Tween.to(this.img, {x:100}, 10000).update = Laya.Handler.create(this, this.updateMsk, null, false); } private updateMsk():void { this.img.mask.graphics.clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffffff"); } 附件 : --> LayaTest...
来源: Laya_社区 发布时间: 20190722
...0); this.tiledmap.createMap("../laya/assets/map/beitianting.json",viewRect,Handler.create(this,onMapCreated)); } 仙魔世界测试.rar 2017-11-20 0 0 分享 微博 QZONE 微信 layaxiaohu 赞同来自: 主角图片没有显示出来 2017-11-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0...
来源: Laya_社区 发布时间: 20171120
... onFire() { if (this.isFire) { Laya.Mesh.load("fly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya...
来源: Laya_社区 发布时间: 20190308