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

大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0055 秒)

1691. 播放模型动画的时候出问题了 [ 58%]

...时候出问题了   //给男角色模型设定贴图动画 var manAni = this.roleMan.addComponent(SkinAnimations); manAni.url ="3d/man/hero.ani"; manAni.player.play();   附件 : --> 2019-02-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

1692. Laya.Pool.getItemByClass 闪退 [ 58%]

...:18186:8) at loop CFFish的init方法如下 public init(type:string):void{ this.type = type } 2018-04-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Apple 赞同来自: console.log(fish) 输出的是什么 2018...

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

1693. 分享:LayaAir下如何获取图集下的小图资源? [ 58%]

....load([{url:"res/atlas/atlas_res.json",type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //获取图集下的单张小图 var texture:Texture=Laya.loader.getRes("atlas_res/01.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture,200,100); Laya.st...

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

1694. SkinnedMeshSprite3D换皮有问题 [ 58%]

...GameObject.Find('shengdan/huaban_shengdan') as Laya.SkinnedMeshSprite3D;  this.skinMeshRender.meshFilter.sharedMesh = newModel.meshFilter.sharedMesh;   模型mesh错乱,同一个建模师建的,要做人物换外表   新模型的mesh赋值过去后 没有正确的显示mesh 附件 : --> 2019...

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

1695. 按钮扩大热区的问题 [ 58%]

...a.Graphics= new Laya.Graphics(); tempgraphics.drawRect(0,0,50,50,"FFFFFF"; this.rootSceneView.avatorBtn.hitArea = tempgraphics   首先绘制的时候必须带上颜色 才能绘制  然后会崩溃   附件 : --> 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

1696. Unlit材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 58%]

...aya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1)

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

1697. Unlit材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 58%]

...aya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture){ //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1)

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

1698. 局部坐标转全局坐标结果与预期相差甚远 [ 58%]

...-12-19 0 4 分享 微博 QZONE 微信 LT 赞同来自: Laya.stage.addChild(this); Laya.timer.once(500,this,test); 转坐标放在后面加了个延时执行。。就没问题了。。应该是执行的时候组件还没有全部加进stage。。 2018-12-20 0 0 分享 微博 QZONE 微信 为什么被...

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

1699. ja语言怎么样创建一个工具类在其他地方调用 [ 58%]

...的处理 var Load_ = (function (_super) { function Load_() { Load_.super(this); } //注册类 Laya.class(Load_, "Load_", _super); var _proto = Load_.prototype; _proto.run_Fast = function () { console.log("逻辑处理"); } return Load_; })(Laya.Sprite);我的代码,但是下面的继承位置Laya...

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

1700. 字距的调整问题 [ 58%]

...调用这个方法,然后适配屏幕。你会发现在某些 机型内 this.designWidth 、与 this.designHeight 是无法获取的。这就尴尬了。导致后面直接不适配,或者就算调用showall可以适配,也有黑边且按钮错位。我找了超久才发现这个。怎么办...

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