• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,301 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)

691. BlinnPhong材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 60%]

...反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个...

来源: Laya2.0_文档 发布时间: 20210714

692. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 60%]

...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

693. 调用时间轴动画丢失皮肤问题? [ 60%]

... 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

694. 图片mask失效问题. [ 60%]

...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

695. sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale [ 60%]

...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

696. 播放声音异常 [ 60%]

...le.log("播放音效"); Laya.SoundManager.playSound("res/AK47.mp3", 1, new Handler(this, this.onComplete));     很简单的调用就崩溃了,麻烦看看,谢谢!!! 附件 : --> 2018-06-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

来源: Laya_社区 发布时间: 20180611

697. RadioGroup 如何联动 [ 60%]

...的链接 提交 1 个回复 Laya_Aaron 赞同来自:  用这个rg.selectHandler = new Handler(this, onSelectChange); 在onSelectChange里面实现功能 2018-01-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 183*****288 相关问题...

来源: Laya_社区 发布时间: 20180126

698. 被遮罩的显示对象的子显示对象再添加遮罩,则子显示对象显示不正确 [ 60%]

....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

699. 加载资源时同时加载两遍 [ 60%]

...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

700. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 60%]

... 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